usb: host: xhci: use ffs() in xhci_mem_init()
authorLinyu Yuan <quic_linyyuan@quicinc.com>
Thu, 3 Mar 2022 11:08:59 +0000 (13:08 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 3 Mar 2022 14:46:07 +0000 (15:46 +0100)
commit81720ec5320c3a02a4b2faf597127de5478cbf02
tree3da785d521bc9c930b5d451ee34de2c467cf65b0
parent70c05e4cf63054cd755ca66c1819327b22cb085f
usb: host: xhci: use ffs() in xhci_mem_init()

The for loop to find page size bit can be replaced with ffs().

Signed-off-by: Linyu Yuan <quic_linyyuan@quicinc.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Link: https://lore.kernel.org/r/20220303110903.1662404-6-mathias.nyman@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci-mem.c