android_kernel_motorola_sm6375/drivers/usb
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Arnd Bergmann acb4faa5f5 usb: sl811-hcd: improve misleading indentation
commit 8460f6003a1d2633737b89c4f69d6f4c0c7c65a3 upstream.

gcc-11 now warns about a confusingly indented code block:

drivers/usb/host/sl811-hcd.c: In function ‘sl811h_hub_control’:
drivers/usb/host/sl811-hcd.c:1291:9: error: this ‘if’ clause does not guard... [-Werror=misleading-indentation]
 1291 |         if (*(u16*)(buf+2))     /* only if wPortChange is interesting */
      |         ^~
drivers/usb/host/sl811-hcd.c:1295:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
 1295 |                 break;

Rewrite this to use a single if() block with the __is_defined() macro.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/20210322164244.827589-1-arnd@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-05-22 11:38:27 +02:00
..
atm
c67x00
cdns3
chipidea
class cdc-wdm: untangle a circular dependency between callback and softint 2021-05-19 10:08:31 +02:00
common
core usb: core: hub: fix race condition about TRSMRCY of resume 2021-05-19 10:08:31 +02:00
dwc2 usb: dwc2: Fix gadget DMA unmap direction 2021-05-19 10:08:31 +02:00
dwc3 usb: dwc3: gadget: Return success always for kick transfer in ep queue 2021-05-19 10:08:31 +02:00
early
gadget usb: gadget: r8a66597: Add missing null check on return from platform_get_resource 2021-05-14 09:44:21 +02:00
host usb: sl811-hcd: improve misleading indentation 2021-05-22 11:38:27 +02:00
image
isp1760
misc USB: yurex: fix control-URB timeout handling 2021-01-12 20:16:20 +01:00
mon
mtu3
musb usb: musb: fix PM reference leak in musb_irq_work() 2021-05-11 14:04:07 +02:00
phy
renesas_usbhs usb: renesas_usbhs: Clear PIPECFG for re-enabling pipe with other EPNUM 2021-03-17 17:03:50 +01:00
roles
serial USB: serial: ti_usb_3410_5052: fix TIOCSSERIAL permission check 2021-05-14 09:44:10 +02:00
storage usb-storage: Add quirk to defeat Kindle's automatic unload 2021-03-24 11:26:40 +01:00
typec usb: typec: tcpm: Fix error while calculating PPS out values 2021-05-19 10:08:33 +02:00
usbip usbip: vudc: fix missing unlock on error in usbip_sockfd_store() 2021-05-14 09:44:22 +02:00
Kconfig
Makefile
usb-skeleton.c