summaryrefslogtreecommitdiffstats
path: root/drivers/net/usb/qmi_wwan.c
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2020-05-09 23:57:56 +0200
committerJakub Kicinski <kuba@kernel.org>2020-05-10 20:13:21 +0200
commitb9f96423bba6155cdf54f96f0b1e43fa6d0b0b74 (patch)
tree6be4a8d899fc3a2f38de389fd6c1f55cec7fe763 /drivers/net/usb/qmi_wwan.c
parentnet: huawei_cdc_ncm: remove redundant assignment to variable ret (diff)
downloadlinux-b9f96423bba6155cdf54f96f0b1e43fa6d0b0b74.tar.xz
linux-b9f96423bba6155cdf54f96f0b1e43fa6d0b0b74.zip
net: usb: qmi_wwan: remove redundant assignment to variable status
The variable status is being initializeed with a value that is never read and it is being updated later with a new value. The initialization is redundant and can be removed. Addresses-Coverity: ("Unused value") Signed-off-by: Colin Ian King <colin.king@canonical.com> Acked-by: Bjørn Mork <bjorn@mork.no> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/usb/qmi_wwan.c')
-rw-r--r--drivers/net/usb/qmi_wwan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/usb/qmi_wwan.c b/drivers/net/usb/qmi_wwan.c
index 4bb8552a00d3..b0eab6e5279d 100644
--- a/drivers/net/usb/qmi_wwan.c
+++ b/drivers/net/usb/qmi_wwan.c
@@ -719,7 +719,7 @@ static int qmi_wwan_change_dtr(struct usbnet *dev, bool on)
static int qmi_wwan_bind(struct usbnet *dev, struct usb_interface *intf)
{
- int status = -1;
+ int status;
u8 *buf = intf->cur_altsetting->extra;
int len = intf->cur_altsetting->extralen;
struct usb_interface_descriptor *desc = &intf->cur_altsetting->desc;