]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
aqc111: cleanup mtu related logic
authorIgor Russkikh <Igor.Russkikh@aquantia.com>
Thu, 16 May 2019 14:52:25 +0000 (14:52 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 16 May 2019 21:22:13 +0000 (14:22 -0700)
commit6ae6d33280b839a05fd3daf5aef9c721aaa84a56
tree63d1b86498c63f3cb6f5fbb6caa21871b72b15da
parent9e598a65b9f7ecf52fee0923747d18b1897270db
aqc111: cleanup mtu related logic

Original fix b8b277525e9d was done under impression that invalid data
could be written for mtu configuration higher that 16334.

But the high limit will anyway be rejected my max_mtu check in caller.
Thus, make the code cleaner and allow it doing the configuration without
checking for maximum mtu value.

Fixes: b8b277525e9d ("aqc111: fix endianness issue in aqc111_change_mtu")
Signed-off-by: Igor Russkikh <igor.russkikh@aquantia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/aqc111.c