Skip to content

Commit 0220a3f

Browse files
Alan Coxgregkh
Alan Cox
authored andcommitted
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>
1 parent e98b6a4 commit 0220a3f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/usb/storage/sierra_ms.c

+1-2
Original file line numberDiff line numberDiff line change
@@ -130,14 +130,13 @@ int sierra_ms_init(struct us_data *us)
130130
struct swoc_info *swocInfo;
131131
struct usb_device *udev;
132132
struct Scsi_Host *sh;
133-
struct scsi_device *sd;
134133

135134
retries = 3;
136135
result = 0;
137136
udev = us->pusb_dev;
138137

139138
sh = us_to_host(us);
140-
sd = scsi_get_host_dev(sh);
139+
scsi_get_host_dev(sh);
141140

142141
US_DEBUGP("SWIMS: sierra_ms_init called\n");
143142

0 commit comments

Comments
 (0)