From 40356c2c2d438d511e4c38225b63cc7e9429ff70 Mon Sep 17 00:00:00 2001
From: Amit KUmar <amit.kumar@iopsys.eu>
Date: Tue, 1 Feb 2022 09:43:23 +0530
Subject: [PATCH] libdsl libethernet: static error resolved.

---
 bcm/bcm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bcm/bcm.c b/bcm/bcm.c
index 2f79f0e..b507e25 100644
--- a/bcm/bcm.c
+++ b/bcm/bcm.c
@@ -54,7 +54,6 @@ static int bcm_eth_get_unit_port(const char *ifname, int *unit, int *port)
 {
 	struct ethswctl_data data;
 	int ret;
-	int i;
 
 	memset(&data, 0, sizeof(struct ethswctl_data));
 
@@ -73,6 +72,7 @@ static int bcm_eth_get_unit_port(const char *ifname, int *unit, int *port)
 	*port = data.port;
 
 	if (!data.port && data.port_map) {
+		int i;
 		unsigned int portmap = data.port_map;
 
 		for (i = 0; i < 8 * sizeof(portmap); i++) {
-- 
GitLab