Skip to content

Commit 48ba8a1

Browse files
Radhey Shyam Pandeydavem330
authored andcommitted
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 <[email protected]> Reviewed-by: Andrew Lunn <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent f83828a commit 48ba8a1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/net/ethernet/xilinx/xilinx_axienet_main.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -614,8 +614,7 @@ static int axienet_device_reset(struct net_device *ndev)
614614
lp->options |= XAE_OPTION_VLAN;
615615
lp->options &= (~XAE_OPTION_JUMBO);
616616

617-
if ((ndev->mtu > XAE_MTU) &&
618-
(ndev->mtu <= XAE_JUMBO_MTU)) {
617+
if (ndev->mtu > XAE_MTU && ndev->mtu <= XAE_JUMBO_MTU) {
619618
lp->max_frm_size = ndev->mtu + VLAN_ETH_HLEN +
620619
XAE_TRL_SIZE;
621620

0 commit comments

Comments
 (0)