From a57d7c29a40ae5b691deafcc267652b918159bc0 Mon Sep 17 00:00:00 2001 From: David Bauer Date: Thu, 29 Jul 2021 20:28:10 +0200 Subject: generic: fix build warning Fixes a unused variable warning: drivers/of/of_net.c: In function 'of_get_mac_address_mtd': drivers/of/of_net.c:92:19: warning: unused variable 'prop' [-Wunused-variable] Signed-off-by: David Bauer --- .../generic/pending-5.4/683-of_net-add-mac-address-to-of-tree.patch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'target/linux/generic/pending-5.4/683-of_net-add-mac-address-to-of-tree.patch') diff --git a/target/linux/generic/pending-5.4/683-of_net-add-mac-address-to-of-tree.patch b/target/linux/generic/pending-5.4/683-of_net-add-mac-address-to-of-tree.patch index 151fd2b0a9..cabfba8b96 100644 --- a/target/linux/generic/pending-5.4/683-of_net-add-mac-address-to-of-tree.patch +++ b/target/linux/generic/pending-5.4/683-of_net-add-mac-address-to-of-tree.patch @@ -1,6 +1,6 @@ --- a/drivers/of/of_net.c +++ b/drivers/of/of_net.c -@@ -127,6 +127,33 @@ static void *of_get_mac_address_mtd(stru +@@ -126,6 +126,33 @@ static void *of_get_mac_address_mtd(stru return NULL; } @@ -34,7 +34,7 @@ /** * Search the device tree for the best MAC address to use. 'mac-address' is -@@ -200,6 +227,7 @@ found: +@@ -199,6 +226,7 @@ found: if (!of_property_read_u32(np, "mac-address-increment", &mac_inc)) addr[inc_idx] += mac_inc; -- cgit v1.2.3