[openwrt/openwrt] realtek: fix syntax error introduced by previous commit
LEDE Commits
lede-commits at lists.infradead.org
Thu Aug 5 07:23:23 PDT 2021
dangole pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/e3096c384ca918639f58162269119bf51c532371
commit e3096c384ca918639f58162269119bf51c532371
Author: Daniel Golle <daniel at makrotopia.org>
AuthorDate: Thu Aug 5 15:20:29 2021 +0100
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 at makrotopia.org>
---
target/linux/realtek/files-5.4/drivers/net/ethernet/rtl838x_eth.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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;
More information about the lede-commits
mailing list