]> www.infradead.org Git - users/jedix/linux-maple.git/commit
usb: gadget: lpc32xx_udc: Remove NULL check of list_entry()
authorYuesong Li <liyuesong@vivo.com>
Wed, 21 Aug 2024 08:52:45 +0000 (16:52 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 22 Aug 2024 09:17:56 +0000 (17:17 +0800)
commit7393bf343a0346c4b0ac0f26991c45e9edf89cb7
tree750367b801870e1c79bba58fd991ccbe761d3164
parente24ed5e2f94e67a2b5d5bb2b45d1d23475189e48
usb: gadget: lpc32xx_udc: Remove NULL check of list_entry()

list_entry() will never return a NULL pointer, thus remove the
check.

Signed-off-by: Yuesong Li <liyuesong@vivo.com>
Reviewed-by: Vladimir Zapolskiy <vz@mleia.com>
Link: https://lore.kernel.org/r/20240821085245.25348-1-liyuesong@vivo.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/gadget/udc/lpc32xx_udc.c