diff options
author | Roland Dreier <rolandd@cisco.com> | 2006-12-12 14:50:20 -0500 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2006-12-12 14:50:20 -0500 |
commit | 44f8e3f3f7d8e61b4aafced278403955fe18ad88 (patch) | |
tree | d89657bc712f29b8959b5087d39a294218dd014c /drivers/infiniband/hw/ipath/ipath_driver.c | |
parent | f47e22c6e4225f40e0dd662398e2cb204f6ec8ed (diff) |
IB/ipath: Remove unused "write-only" variables
Remove variables that are set but then never looked at in the ipath
driver. These cleanups came from David Binderman's list of "set but
never used" warnings from icc.
Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband/hw/ipath/ipath_driver.c')
-rw-r--r-- | drivers/infiniband/hw/ipath/ipath_driver.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/infiniband/hw/ipath/ipath_driver.c b/drivers/infiniband/hw/ipath/ipath_driver.c index 1aeddb48e355..ae7f21a0cdc0 100644 --- a/drivers/infiniband/hw/ipath/ipath_driver.c +++ b/drivers/infiniband/hw/ipath/ipath_driver.c | |||
@@ -1825,8 +1825,6 @@ void ipath_write_kreg_port(const struct ipath_devdata *dd, ipath_kreg regno, | |||
1825 | */ | 1825 | */ |
1826 | void ipath_shutdown_device(struct ipath_devdata *dd) | 1826 | void ipath_shutdown_device(struct ipath_devdata *dd) |
1827 | { | 1827 | { |
1828 | u64 val; | ||
1829 | |||
1830 | ipath_dbg("Shutting down the device\n"); | 1828 | ipath_dbg("Shutting down the device\n"); |
1831 | 1829 | ||
1832 | dd->ipath_flags |= IPATH_LINKUNK; | 1830 | dd->ipath_flags |= IPATH_LINKUNK; |
@@ -1849,7 +1847,7 @@ void ipath_shutdown_device(struct ipath_devdata *dd) | |||
1849 | */ | 1847 | */ |
1850 | ipath_write_kreg(dd, dd->ipath_kregs->kr_sendctrl, 0ULL); | 1848 | ipath_write_kreg(dd, dd->ipath_kregs->kr_sendctrl, 0ULL); |
1851 | /* flush it */ | 1849 | /* flush it */ |
1852 | val = ipath_read_kreg64(dd, dd->ipath_kregs->kr_scratch); | 1850 | ipath_read_kreg64(dd, dd->ipath_kregs->kr_scratch); |
1853 | /* | 1851 | /* |
1854 | * enough for anything that's going to trickle out to have actually | 1852 | * enough for anything that's going to trickle out to have actually |
1855 | * done so. | 1853 | * done so. |