]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
net: usb: qmi_wwan: remove redundant assignment to variable status
authorColin Ian King <colin.king@canonical.com>
Sat, 9 May 2020 21:57:56 +0000 (22:57 +0100)
committerJakub Kicinski <kuba@kernel.org>
Sun, 10 May 2020 18:13:21 +0000 (11:13 -0700)
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>
drivers/net/usb/qmi_wwan.c

index 4bb8552a00d3de951a49edbaff0d7b309f992703..b0eab6e5279d338dcf4da90cf48f8549628662dc 100644 (file)
@@ -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;