diff options
| author | Vincent Mailhol <[email protected]> | 2022-06-11 16:20:36 +0000 |
|---|---|---|
| committer | Marc Kleine-Budde <[email protected]> | 2022-06-11 20:45:48 +0000 |
| commit | 173d349ba0b785305fde42a67ce66a63417e57da (patch) | |
| tree | 05a0dad9c6a04356fffd35ce052bc4ea2c9f9a63 /net/unix/sysctl_net_unix.c | |
| parent | can: Break loopback loop on loopback documentation (diff) | |
| download | kernel-173d349ba0b785305fde42a67ce66a63417e57da.tar.gz kernel-173d349ba0b785305fde42a67ce66a63417e57da.zip | |
can: etas_es58x: replace es58x_device::rx_max_packet_size by usb_maxpacket()
The field rx_max_packet_size of struct es58x_device in nothing else
than usb_endpoint_descriptor::wMaxPacketSize and can be easily
retrieved using usb_maxpacket(). Also, rx_max_packet_size being used a
single time, there is no merit to cache it locally.
Remove es58x_device::rx_max_packet_size and rely on usb_maxpacket()
instead.
Link: https://lore.kernel.org/all/[email protected]
Signed-off-by: Vincent Mailhol <[email protected]>
Signed-off-by: Marc Kleine-Budde <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions
