Skip to content

Commit

Permalink
WUSB: remove an unnused variable
Browse files Browse the repository at this point in the history
The "wusb_cap_descr_default" is never used.  GCC doesn't complain about
it because we have that line ".bLength = sizeof(wusb_cap_descr_default)"
inside the definition itself.  Clang complains though.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Dan Carpenter authored and Greg Kroah-Hartman committed Oct 22, 2012
1 parent be7ac70 commit da31fe4
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions drivers/usb/wusbcore/devconnect.c
Original file line number Diff line number Diff line change
Expand Up @@ -847,19 +847,6 @@ static void wusb_dev_bos_rm(struct wusb_dev *wusb_dev)
wusb_dev->wusb_cap_descr = NULL;
};

static struct usb_wireless_cap_descriptor wusb_cap_descr_default = {
.bLength = sizeof(wusb_cap_descr_default),
.bDescriptorType = USB_DT_DEVICE_CAPABILITY,
.bDevCapabilityType = USB_CAP_TYPE_WIRELESS_USB,

.bmAttributes = USB_WIRELESS_BEACON_NONE,
.wPHYRates = cpu_to_le16(USB_WIRELESS_PHY_53),
.bmTFITXPowerInfo = 0,
.bmFFITXPowerInfo = 0,
.bmBandGroup = cpu_to_le16(0x0001), /* WUSB1.0[7.4.1] bottom */
.bReserved = 0
};

/*
* USB stack's device addition Notifier Callback
*
Expand Down

0 comments on commit da31fe4

Please sign in to comment.