usb: gadget: udc: bcm63xx: Convert to use list_count()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 23 Nov 2022 14:49:00 +0000 (16:49 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 29 Nov 2022 07:56:09 +0000 (08:56 +0100)
commitc2d9d02f7bf3c641f9b8e6c9f5de1e564cdeca69
tree8f8702a8250ddeaca946dd687359cf4d08c1c167
parent33f00f41d963c86176dba2f9faff9b428a542e60
usb: gadget: udc: bcm63xx: Convert to use list_count()

The list API now provides the list_count() to help with counting
existing nodes in the list. Utilise it.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20221123144901.40493-3-andriy.shevchenko@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/gadget/udc/bcm63xx_udc.c