realtek: fix syntax error introduced by previous commit
authorDaniel Golle <daniel@makrotopia.org>
Thu, 5 Aug 2021 14:20:29 +0000 (15:20 +0100)
committerDaniel Golle <daniel@makrotopia.org>
Thu, 5 Aug 2021 14:22:26 +0000 (15:22 +0100)
A superflus ')' character has slipped into commit 91a52f22a1. Remove it
to fix build.

Fixes: 91a52f22a1 ("treewide: backport support for nvmem on non platform devices")
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
target/linux/realtek/files-5.4/drivers/net/ethernet/rtl838x_eth.c

index f810f7eb581025aad0ae8a7b392b969056b00a32..3f98e3bf81266a7c1c432461bef15aa868ba8bd5 100644 (file)
@@ -2089,7 +2089,7 @@ static int __init rtl838x_eth_probe(struct platform_device *pdev)
         * 2) from internal registers set by bootloader
         */
        of_get_mac_address(pdev->dev.of_node, dev->dev_addr);
-       if (is_valid_ether_addr(dev->dev_addr))) {
+       if (is_valid_ether_addr(dev->dev_addr)) {
                rtl838x_set_mac_hw(dev, (u8 *)dev->dev_addr);
        } else {
                dev->dev_addr[0] = (sw_r32(priv->r->mac) >> 8) & 0xff;