usb: oxu210hp-hcd: remove redundant call to max_packet() macro
authorVincent Mailhol <mailhol.vincent@wanadoo.fr>
Sun, 6 Mar 2022 07:55:15 +0000 (16:55 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 15 Mar 2022 17:23:53 +0000 (18:23 +0100)
commit7f1697b1a5e8f210b4fb76cb9c3c26ac3aa2caf4
tree2be18cff8e799754ae12db1e5304a9d4bdf6b513
parentd790a9db918f7c2356ea2f775cd868551218fc07
usb: oxu210hp-hcd: remove redundant call to max_packet() macro

The function usb_endpoint_maxp() (called by usb_maxpacket()) already
does the sanitazation of the USB endpoint max packet size. The call to
max_packet() does the same thing and is thus removed.

However, the macro max_packet() is kept because it is used elsewhere
in the file.

Signed-off-by: Vincent Mailhol <mailhol.vincent@wanadoo.fr>
Link: https://lore.kernel.org/r/20220306075524.706660-2-mailhol.vincent@wanadoo.fr
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/oxu210hp-hcd.c