Skip to content

Commit 7d3cca7

Browse files
andy-shevdavem330
authored andcommitted
net: bcmgenet: Drop too many parentheses in bcmgenet_probe()
No need to have parentheses around plain pointer variable or negation operator. Drop them for good. Signed-off-by: Andy Shevchenko <[email protected]> Acked-by: Florian Fainelli <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent d2af142 commit 7d3cca7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/broadcom/genet/bcmgenet.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3529,7 +3529,7 @@ static int bcmgenet_probe(struct platform_device *pdev)
35293529
if (device_get_phy_mode(&pdev->dev) == PHY_INTERFACE_MODE_INTERNAL)
35303530
bcmgenet_power_up(priv, GENET_POWER_PASSIVE);
35313531

3532-
if ((pd) && (!IS_ERR_OR_NULL(pd->mac_address)))
3532+
if (pd && !IS_ERR_OR_NULL(pd->mac_address))
35333533
ether_addr_copy(dev->dev_addr, pd->mac_address);
35343534
else
35353535
if (!device_get_mac_address(&pdev->dev, dev->dev_addr, ETH_ALEN))

0 commit comments

Comments
 (0)