Skip to content

Commit

Permalink
USB: sierra_ms: don't keep unused variable
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Alan Cox authored and Greg Kroah-Hartman committed Sep 21, 2012
1 parent e98b6a4 commit 0220a3f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/usb/storage/sierra_ms.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
sd = scsi_get_host_dev(sh);
scsi_get_host_dev(sh);

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

Expand Down

0 comments on commit 0220a3f

Please sign in to comment.