Commit 61ef170
usb: isp1760: remove redundant 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.
The macro max_packet() not being used anymore also gets removed.
Reviewed-by: Rui Miguel Silva <rui.silva@linaro.org>
Signed-off-by: Vincent Mailhol <mailhol.vincent@wanadoo.fr>
Link: https://lore.kernel.org/r/20220306075524.706660-3-mailhol.vincent@wanadoo.fr
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>1 parent 7f1697b commit 61ef170
1 file changed
Lines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1768 | 1768 | | |
1769 | 1769 | | |
1770 | 1770 | | |
1771 | | - | |
1772 | 1771 | | |
1773 | 1772 | | |
1774 | 1773 | | |
| |||
1809 | 1808 | | |
1810 | 1809 | | |
1811 | 1810 | | |
1812 | | - | |
1813 | | - | |
| 1811 | + | |
| 1812 | + | |
1814 | 1813 | | |
1815 | 1814 | | |
1816 | 1815 | | |
| |||
0 commit comments