[openib-general] [PATCH] kill dead code in mthca_eq.c

Michael S. Tsirkin mst at mellanox.co.il
Wed May 10 01:32:56 PDT 2006


Kill some dead code in mthca_eq.c

Signed-off-by: Michael S. Tsirkin <mst at mellanox.co.il>

Index: linux-2.6.16/drivers/infiniband/hw/mthca/mthca_eq.c
===================================================================
--- linux-2.6.16.orig/drivers/infiniband/hw/mthca/mthca_eq.c	2006-04-06 17:49:46.000000000 +0200
+++ linux-2.6.16/drivers/infiniband/hw/mthca/mthca_eq.c	2006-05-10 13:18:41.000000000 +0300
@@ -695,10 +695,6 @@ static void mthca_unmap_reg(struct mthca
 
 static int __devinit mthca_map_eq_regs(struct mthca_dev *dev)
 {
-	unsigned long mthca_base;
-
-	mthca_base = pci_resource_start(dev->pdev, 0);
-
 	if (mthca_is_memfree(dev)) {
 		/*
 		 * We assume that the EQ arm and EQ set CI registers

-- 
MST



More information about the general mailing list