Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0220a3f0 authored by Alan Cox's avatar Alan Cox Committed by Greg Kroah-Hartman
Browse files

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: default avatarAlan Cox <alan@linux.intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent e98b6a4f
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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");