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>
This commit is contained in:
Родитель
1ea08c6bce
Коммит
b9f96423bb
|
@ -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)
|
static int qmi_wwan_bind(struct usbnet *dev, struct usb_interface *intf)
|
||||||
{
|
{
|
||||||
int status = -1;
|
int status;
|
||||||
u8 *buf = intf->cur_altsetting->extra;
|
u8 *buf = intf->cur_altsetting->extra;
|
||||||
int len = intf->cur_altsetting->extralen;
|
int len = intf->cur_altsetting->extralen;
|
||||||
struct usb_interface_descriptor *desc = &intf->cur_altsetting->desc;
|
struct usb_interface_descriptor *desc = &intf->cur_altsetting->desc;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче