mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-13 12:59:33 -04:00
net: axienet: remove unnecessary parentheses
Remove unnecessary parentheses around 'ndev->mtu
<= XAE_JUMBO_MTU' and 'ndev->mtu > XAE_MTU'. Reported
by checkpatch.
CHECK: Unnecessary parentheses around 'ndev->mtu > XAE_MTU'
+ if ((ndev->mtu > XAE_MTU) &&
+ (ndev->mtu <= XAE_JUMBO_MTU)) {
CHECK: Unnecessary parentheses around 'ndev->mtu <= XAE_JUMBO_MTU'
+ if ((ndev->mtu > XAE_MTU) &&
+ (ndev->mtu <= XAE_JUMBO_MTU)) {
Signed-off-by: Radhey Shyam Pandey <radhey.shyam.pandey@amd.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
f83828a052
commit
48ba8a1d04
@@ -614,8 +614,7 @@ static int axienet_device_reset(struct net_device *ndev)
|
||||
lp->options |= XAE_OPTION_VLAN;
|
||||
lp->options &= (~XAE_OPTION_JUMBO);
|
||||
|
||||
if ((ndev->mtu > XAE_MTU) &&
|
||||
(ndev->mtu <= XAE_JUMBO_MTU)) {
|
||||
if (ndev->mtu > XAE_MTU && ndev->mtu <= XAE_JUMBO_MTU) {
|
||||
lp->max_frm_size = ndev->mtu + VLAN_ETH_HLEN +
|
||||
XAE_TRL_SIZE;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user