]> git.karo-electronics.de Git - karo-tx-linux.git/commit
net: ethernet: aquantia: Fixes for aq_ndev_change_mtu
authorPavel Belous <pavel.belous@aquantia.com>
Mon, 20 Feb 2017 19:36:41 +0000 (22:36 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 20 Feb 2017 22:11:09 +0000 (17:11 -0500)
commit5513e16421cb9538f4e394734e4b96ea0d857b23
tree89227b661823bf9686670dbbed84786ac19e7949
parent15e32a5e1e016f40712c3c843c84078385c49db2
net: ethernet: aquantia: Fixes for aq_ndev_change_mtu

1)Removed unnecessary comparsion "old_mtu == new_mtu".
This check is not needed. Function aq_ndev_change_mtu wont be called
if mtu has not changed.

2)Removed extra assignment ndev->mtu = new_mtu;
This assignment already done inside __dev_set_mtu().

3)Use core MTU checking for min_mtu.

Signed-off-by: Pavel Belous <pavel.belous@aquantia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/aquantia/atlantic/aq_main.c
drivers/net/ethernet/aquantia/atlantic/aq_nic.c