]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
IB/ipath: Remove redundant code
authorRalph Campbell <ralph.campbell@qlogic.com>
Mon, 20 Aug 2007 23:52:35 +0000 (16:52 -0700)
committerRoland Dreier <rolandd@cisco.com>
Wed, 10 Oct 2007 03:46:23 +0000 (20:46 -0700)
This patch removes some redundant initialization code.

Signed-off-by: Ralph Campbell <ralph.campbell@qlogic.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/ipath/ipath_driver.c

index 5248f57fe198b02a2da550eb1d7d4a4ddc8f0d6a..44784d049b71caafbbb0ef7300b51727f2cfd19a 100644 (file)
@@ -382,8 +382,6 @@ static int __devinit ipath_init_one(struct pci_dev *pdev,
 
        ipath_cdbg(VERBOSE, "initializing unit #%u\n", dd->ipath_unit);
 
-       read_bars(dd, pdev, &bar0, &bar1);
-
        ret = pci_enable_device(pdev);
        if (ret) {
                /* This can happen iff:
@@ -529,9 +527,6 @@ static int __devinit ipath_init_one(struct pci_dev *pdev,
                goto bail_regions;
        }
 
-       dd->ipath_deviceid = ent->device;       /* save for later use */
-       dd->ipath_vendorid = ent->vendor;
-
        dd->ipath_pcirev = pdev->revision;
 
 #if defined(__powerpc__)