linux-stable/drivers/usb
Colin Ian King 7f72d17359 usb: gadget: function: remove redundant else statement
After an initial range change on the insigned int alt being > 1
the only possible values for alt are 0 or 1. Therefore the else
statement for values other than 0 or 1 is redundant and can be
removed. Replace the else if (all == 1) check with just an else.

Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Reviewed-by: Takashi Iwai <tiwai@suse.de>
Link: https://lore.kernel.org/5f54ffd0-b5fe-4203-a626-c166becad362@gmail.com
Link: https://lore.kernel.org/r/20241107133348.22762-1-colin.i.king@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-11-10 11:06:40 +01:00
..
atm Merge 6.12-rc3 into usb-next 2024-10-14 08:03:44 +02:00
c67x00 usb: Switch back to struct platform_driver::remove() 2024-10-04 15:13:03 +02:00
cdns3 usb: Switch back to struct platform_driver::remove() 2024-10-04 15:13:03 +02:00
chipidea usb: Use (of|device)_property_present() for non-boolean properties 2024-11-05 13:29:26 +01:00
class move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
common usb: Switch back to struct platform_driver::remove() 2024-10-04 15:13:03 +02:00
core Merge v6.12-rc6 into usb-next 2024-11-05 09:56:08 +01:00
dwc2 Merge v6.12-rc6 into usb-next 2024-11-05 09:56:08 +01:00
dwc3 usb: Use (of|device)_property_present() for non-boolean properties 2024-11-05 13:29:26 +01:00
early usb: early: xhci-dbc: Use memcpy_and_pad() 2023-01-31 10:40:54 +01:00
fotg210 Merge 6.12-rc3 into usb-next 2024-10-14 08:03:44 +02:00
gadget usb: gadget: function: remove redundant else statement 2024-11-10 11:06:40 +01:00
host usb: xhci: Avoid queuing redundant Stop Endpoint commands 2024-11-06 13:26:16 +01:00
image scsi: core: Add a dma_alignment field to the host and host template 2024-04-11 21:37:48 -04:00
isp1760 Merge 6.12-rc3 into usb-next 2024-10-14 08:03:44 +02:00
misc Merge 6.12-rc3 into usb-next 2024-10-14 08:03:44 +02:00
mon [tree-wide] finally take no_llseek out 2024-09-27 08:18:43 -07:00
mtu3 usb: Use (of|device)_property_present() for non-boolean properties 2024-11-05 13:29:26 +01:00
musb Merge 6.12-rc3 into usb-next 2024-10-14 08:03:44 +02:00
phy usb: Use (of|device)_property_present() for non-boolean properties 2024-11-05 13:29:26 +01:00
renesas_usbhs usb: Use (of|device)_property_present() for non-boolean properties 2024-11-05 13:29:26 +01:00
roles usb: Switch back to struct platform_driver::remove() 2024-10-04 15:13:03 +02:00
serial USB: serial: option: add Telit FN920C04 MBIM compositions 2024-10-17 16:38:02 +02:00
storage usb: storage: use US_BULK_FLAG_OUT instead of constant values 2024-10-29 04:33:25 +01:00
typec usb: typec: ucsi: Convert connector specific commands to bitmaps 2024-11-07 10:02:36 +01:00
usbip usb: Switch back to struct platform_driver::remove() 2024-10-04 15:13:03 +02:00
Kconfig usb: pci-quirks: handle HAS_IOPORT dependency for AMD quirk 2023-10-02 16:19:12 +02:00
Makefile USB: xen-hcd: Traverse host/ when CONFIG_USB_XEN_HCD is selected 2024-06-04 15:33:38 +02:00
usb-skeleton.c usb: add usb_set_intfdata() documentation 2022-11-29 08:56:09 +01:00