aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/realtek
diff options
context:
space:
mode:
authorDaniel Golle <daniel@makrotopia.org>2021-08-05 15:20:29 +0100
committerDaniel Golle <daniel@makrotopia.org>2021-08-05 15:22:26 +0100
commite3096c384ca918639f58162269119bf51c532371 (patch)
tree71963c4baca6a05e278c863f595d793064a2e7cf /target/linux/realtek
parent774b386a928339ef1169f5b121fce2ccd3aa5e96 (diff)
downloadupstream-e3096c384ca918639f58162269119bf51c532371.tar.gz
upstream-e3096c384ca918639f58162269119bf51c532371.tar.bz2
upstream-e3096c384ca918639f58162269119bf51c532371.zip
realtek: fix syntax error introduced by previous commit
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>
Diffstat (limited to 'target/linux/realtek')
-rw-r--r--target/linux/realtek/files-5.4/drivers/net/ethernet/rtl838x_eth.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/realtek/files-5.4/drivers/net/ethernet/rtl838x_eth.c b/target/linux/realtek/files-5.4/drivers/net/ethernet/rtl838x_eth.c
index f810f7eb58..3f98e3bf81 100644
--- a/target/linux/realtek/files-5.4/drivers/net/ethernet/rtl838x_eth.c
+++ b/target/linux/realtek/files-5.4/drivers/net/ethernet/rtl838x_eth.c
@@ -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;