projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e98b6a4
)
USB: sierra_ms: don't keep unused variable
author
Alan Cox
<alan@linux.intel.com>
Wed, 19 Sep 2012 14:47:03 +0000
(15:47 +0100)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Fri, 21 Sep 2012 16:50:02 +0000
(09:50 -0700)
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>
drivers/usb/storage/sierra_ms.c
patch
|
blob
|
history
diff --git
a/drivers/usb/storage/sierra_ms.c
b/drivers/usb/storage/sierra_ms.c
index
37539c8
..
17e3695
100644
(file)
--- 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)
struct swoc_info *swocInfo;
struct usb_device *udev;
struct Scsi_Host *sh;
- struct scsi_device *sd;
retries = 3;
result = 0;
udev = us->pusb_dev;
sh = us_to_host(us);
- s
d = s
csi_get_host_dev(sh);
+ scsi_get_host_dev(sh);
US_DEBUGP("SWIMS: sierra_ms_init called\n");