Skip to content

Commit

Permalink
IB/ipath: Remove redundant code
Browse files Browse the repository at this point in the history
This patch removes some redundant initialization code.

Signed-off-by: Ralph Campbell <ralph.campbell@qlogic.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
  • Loading branch information
Ralph Campbell authored and Roland Dreier committed Oct 10, 2007
1 parent d29cc6e commit 036be09
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions drivers/infiniband/hw/ipath/ipath_driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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__)
Expand Down

0 comments on commit 036be09

Please sign in to comment.