diff options
author | Alan Cox <alan@linux.intel.com> | 2012-09-19 10:47:03 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-09-21 12:50:02 -0400 |
commit | 0220a3f01ab3d4673ca7087701d7466bea6b1d3a (patch) | |
tree | 268e5d4c81636af4c19882e5befdae702c8fec97 /drivers/usb/storage | |
parent | e98b6a4f9667e41eb96104991794eb29212ec2b7 (diff) |
USB: sierra_ms: don't keep unused variable
We need to call scsi_get_host_dev(sh) but we never use the return
nor do we have any reason to check it.
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/storage')
-rw-r--r-- | drivers/usb/storage/sierra_ms.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/usb/storage/sierra_ms.c b/drivers/usb/storage/sierra_ms.c index 37539c89e3ba..17e36952bced 100644 --- a/drivers/usb/storage/sierra_ms.c +++ b/drivers/usb/storage/sierra_ms.c | |||
@@ -130,14 +130,13 @@ int sierra_ms_init(struct us_data *us) | |||
130 | struct swoc_info *swocInfo; | 130 | struct swoc_info *swocInfo; |
131 | struct usb_device *udev; | 131 | struct usb_device *udev; |
132 | struct Scsi_Host *sh; | 132 | struct Scsi_Host *sh; |
133 | struct scsi_device *sd; | ||
134 | 133 | ||
135 | retries = 3; | 134 | retries = 3; |
136 | result = 0; | 135 | result = 0; |
137 | udev = us->pusb_dev; | 136 | udev = us->pusb_dev; |
138 | 137 | ||
139 | sh = us_to_host(us); | 138 | sh = us_to_host(us); |
140 | sd = scsi_get_host_dev(sh); | 139 | scsi_get_host_dev(sh); |
141 | 140 | ||
142 | US_DEBUGP("SWIMS: sierra_ms_init called\n"); | 141 | US_DEBUGP("SWIMS: sierra_ms_init called\n"); |
143 | 142 | ||