]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
usb: gadget: at91-udc: simplify at91rm9200_udc_pullup callback
authorMichael Grzeschik <m.grzeschik@pengutronix.de>
Fri, 4 Nov 2022 21:55:13 +0000 (22:55 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 9 Nov 2022 10:43:11 +0000 (11:43 +0100)
commit0349fdab2ff0673cc3c3f300316522d4f2bb1af9
treec725309578c88385e959fad1846e58aea250021c
parent430d57f53eb1cdbf9ba9bbd397317912b3cd2de5
usb: gadget: at91-udc: simplify at91rm9200_udc_pullup callback

Just simplify the use of is_on and get rid of superfluous condition.

Cc: gregkh@linuxfoundation.org
Cc: nicolas.ferre@microchip.com
Cc: alexandre.belloni@bootlin.com
Cc: linux-usb@vger.kernel.org
Cc: kernel@pengutronix.de
Reviewed-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
Link: https://lore.kernel.org/r/20221104215516.2874922-2-m.grzeschik@pengutronix.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/gadget/udc/at91_udc.c