From: Alan Cox <a...@linux.intel.com>

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 <a...@linux.intel.com>
---

 drivers/usb/storage/sierra_ms.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/usb/storage/sierra_ms.c b/drivers/usb/storage/sierra_ms.c
index 37539c8..17e3695 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)
        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");
 

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to