Commit 3254a73f authored by luo penghao's avatar luo penghao Committed by Greg Kroah-Hartman

usb-storage: Remove redundant assignments

The assignments in these two places will be overwritten, so they
should be deleted.

The clang_analyzer complains as follows:

drivers/usb/storage/sierra_ms.c:

Value stored to 'retries' is never read
Value stored to 'result' is never read
Reported-by: default avatarZeal Robot <zealci@zte.com.cn>
Signed-off-by: default avatarluo penghao <luo.penghao@zte.com.cn>
Link: https://lore.kernel.org/r/20211230063819.586428-1-luo.penghao@zte.com.cnSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent ce1d37cb
...@@ -130,8 +130,6 @@ int sierra_ms_init(struct us_data *us) ...@@ -130,8 +130,6 @@ int sierra_ms_init(struct us_data *us)
struct swoc_info *swocInfo; struct swoc_info *swocInfo;
struct usb_device *udev; struct usb_device *udev;
retries = 3;
result = 0;
udev = us->pusb_dev; udev = us->pusb_dev;
/* Force Modem mode */ /* Force Modem mode */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment