xhci: Convert to use list_count()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 23 Nov 2022 14:49:01 +0000 (16:49 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 29 Nov 2022 07:56:09 +0000 (08:56 +0100)
commitb47ec9727f47d1dce4e8cbc9aef01c80b2332535
treeb761c77c3f6ab8d50ead7bc0a865c439b9a93640
parentc2d9d02f7bf3c641f9b8e6c9f5de1e564cdeca69
xhci: Convert to use list_count()

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

Acked-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20221123144901.40493-4-andriy.shevchenko@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci-ring.c