linux_dsm_epyc7002/drivers/usb
Arnd Bergmann c6034b618c 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:40:51 +02:00
..
atm
c67x00
cdns3
chipidea
class cdc-wdm: untangle a circular dependency between callback and softint 2021-05-19 10:13:16 +02:00
common
core usb: core: hub: fix race condition about TRSMRCY of resume 2021-05-19 10:13:15 +02:00
dwc2 usb: dwc2: Fix gadget DMA unmap direction 2021-05-19 10:13:15 +02:00
dwc3 usb: dwc3: gadget: Return success always for kick transfer in ep queue 2021-05-19 10:13:15 +02:00
early
gadget usb: gadget: r8a66597: Add missing null check on return from platform_get_resource 2021-05-14 09:50:18 +02:00
host usb: sl811-hcd: improve misleading indentation 2021-05-22 11:40:51 +02:00
image
isp1760
misc
mon
mtu3
musb usb: musb: Fix an error message 2021-05-19 10:13:13 +02:00
phy
renesas_usbhs usb: renesas_usbhs: Clear PIPECFG for re-enabling pipe with other EPNUM 2021-03-17 17:06:29 +01:00
roles usb: roles: Call try_module_get() from usb_role_switch_find_by_fwnode() 2021-05-14 09:49:55 +02:00
serial USB: serial: ti_usb_3410_5052: fix TIOCSSERIAL permission check 2021-05-14 09:49:56 +02:00
storage usb-storage: Add quirk to defeat Kindle's automatic unload 2021-03-25 09:04:14 +01:00
typec usb: typec: tcpm: Fix error while calculating PPS out values 2021-05-19 10:13:18 +02:00
usbip usbip: vudc: fix missing unlock on error in usbip_sockfd_store() 2021-05-14 09:50:19 +02:00
Kconfig
Makefile
usb-skeleton.c