WSL2-Linux-Kernel/drivers/net/vmxnet3
Jean Sacren 1d6d336fed net: vmxnet3: remove multiple false checks in vmxnet3_ethtool.c
In one if branch, (ec->rx_coalesce_usecs != 0) is checked.  When it is
checked again in two more places, it is always false and has no effect
on the whole check expression.  We should remove it in both places.

In another if branch, (ec->use_adaptive_rx_coalesce != 0) is checked.
When it is checked again, it is always false.  We should remove the
entire branch with it.

In addition we might as well let C precedence dictate by getting rid of
two pairs of parentheses in the neighboring lines in order to keep
expressions on both sides of '||' in balance with checkpatch warning
silenced.

Signed-off-by: Jean Sacren <sakiwit@gmail.com>
Link: https://lore.kernel.org/r/20211031012728.8325-1-sakiwit@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2021-11-01 16:35:27 -07:00
..
Makefile vmxnet3: prepare for version 6 changes 2021-07-16 17:32:14 -07:00
upt1_defs.h vmxnet3: prepare for version 6 changes 2021-07-16 17:32:14 -07:00
vmxnet3_defs.h vmxnet3: increase maximum configurable mtu to 9190 2021-07-16 17:32:14 -07:00
vmxnet3_drv.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2021-10-28 10:43:58 -07:00
vmxnet3_ethtool.c net: vmxnet3: remove multiple false checks in vmxnet3_ethtool.c 2021-11-01 16:35:27 -07:00
vmxnet3_int.h vmxnet3: update to version 6 2021-07-16 17:32:14 -07:00