Commit da31fe451a7a717c01ae26fa1e9e46fa43921b7d
Committed by
Greg Kroah-Hartman
1 parent
be7ac70b9b
Exists in
smarc-l5.0.0_1.0.0-ga
and in
5 other branches
WUSB: remove an unnused variable
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>
Showing 1 changed file with 0 additions and 13 deletions Side-by-side Diff
drivers/usb/wusbcore/devconnect.c
... | ... | @@ -847,19 +847,6 @@ |
847 | 847 | wusb_dev->wusb_cap_descr = NULL; |
848 | 848 | }; |
849 | 849 | |
850 | -static struct usb_wireless_cap_descriptor wusb_cap_descr_default = { | |
851 | - .bLength = sizeof(wusb_cap_descr_default), | |
852 | - .bDescriptorType = USB_DT_DEVICE_CAPABILITY, | |
853 | - .bDevCapabilityType = USB_CAP_TYPE_WIRELESS_USB, | |
854 | - | |
855 | - .bmAttributes = USB_WIRELESS_BEACON_NONE, | |
856 | - .wPHYRates = cpu_to_le16(USB_WIRELESS_PHY_53), | |
857 | - .bmTFITXPowerInfo = 0, | |
858 | - .bmFFITXPowerInfo = 0, | |
859 | - .bmBandGroup = cpu_to_le16(0x0001), /* WUSB1.0[7.4.1] bottom */ | |
860 | - .bReserved = 0 | |
861 | -}; | |
862 | - | |
863 | 850 | /* |
864 | 851 | * USB stack's device addition Notifier Callback |
865 | 852 | * |