Variable mnt is assigned a value and in the very next line it's assigned
to another variable and not used anymore which doesn't make sense.

Signed-off-by: Arkadiusz Drabczyk <arkadi...@drabczyk.org>
---
 block.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/block.c b/block.c
index 05f84aa..1d4f27d 100644
--- a/block.c
+++ b/block.c
@@ -1268,8 +1268,7 @@ static int check_extroot(char *path)
 static int mount_extroot(char *cfg)
 {
        char overlay[] = "/tmp/extroot/overlay";
-       char mnt[] = "/tmp/extroot/mnt";
-       char *path = mnt;
+       char *path = "/tmp/extroot/mnt";
        struct probe_info *pr;
        struct mount *m;
        int err = -1;
-- 
2.9.0


-- 
Arkadiusz Drabczyk <arkadi...@drabczyk.org>

_______________________________________________
Lede-dev mailing list
Lede-dev@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/lede-dev

Reply via email to