Commit 4133828c authored by Kirtika Ruchandani's avatar Kirtika Ruchandani Committed by Kalle Valo

mwifiex: Remove unused 'bcd_usb' variable

mwifiex_usb_probe() defines and sets bcd_usb but does not use it,
Compiling with W=1 gives the following warning, fix it.
mwifiex/usb.c: In function ‘mwifiex_usb_probe’:
mwifiex/usb.c:383:41: warning: variable ‘bcd_usb’ set but not used [-Wunused-but-set-variable]

The unused variable seems to be present since 4daffe35 which introduced
mwifiex_usb_probe().

Fixes: 4daffe35 ("mwifiex: add support for Marvell USB8797 chipset")
Cc: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: default avatarKirtika Ruchandani <kirtika@google.com>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
parent 67dd2a75
...@@ -379,7 +379,7 @@ static int mwifiex_usb_probe(struct usb_interface *intf, ...@@ -379,7 +379,7 @@ static int mwifiex_usb_probe(struct usb_interface *intf,
struct usb_endpoint_descriptor *epd; struct usb_endpoint_descriptor *epd;
int ret, i; int ret, i;
struct usb_card_rec *card; struct usb_card_rec *card;
u16 id_vendor, id_product, bcd_device, bcd_usb; u16 id_vendor, id_product, bcd_device;
card = devm_kzalloc(&intf->dev, sizeof(*card), GFP_KERNEL); card = devm_kzalloc(&intf->dev, sizeof(*card), GFP_KERNEL);
if (!card) if (!card)
...@@ -390,7 +390,6 @@ static int mwifiex_usb_probe(struct usb_interface *intf, ...@@ -390,7 +390,6 @@ static int mwifiex_usb_probe(struct usb_interface *intf,
id_vendor = le16_to_cpu(udev->descriptor.idVendor); id_vendor = le16_to_cpu(udev->descriptor.idVendor);
id_product = le16_to_cpu(udev->descriptor.idProduct); id_product = le16_to_cpu(udev->descriptor.idProduct);
bcd_device = le16_to_cpu(udev->descriptor.bcdDevice); bcd_device = le16_to_cpu(udev->descriptor.bcdDevice);
bcd_usb = le16_to_cpu(udev->descriptor.bcdUSB);
pr_debug("info: VID/PID = %X/%X, Boot2 version = %X\n", pr_debug("info: VID/PID = %X/%X, Boot2 version = %X\n",
id_vendor, id_product, bcd_device); id_vendor, id_product, bcd_device);
......
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