erofs-utils: lib: Remove redundant assignment
authorSandeep Dhavale <dhavale@google.com>
Wed, 13 Sep 2023 22:11:03 +0000 (15:11 -0700)
committerGao Xiang <hsiangkao@linux.alibaba.com>
Thu, 14 Sep 2023 02:53:38 +0000 (10:53 +0800)
The intended assignment is already part of the next for loop
initialization.

Signed-off-by: Sandeep Dhavale <dhavale@google.com>
Link: https://lore.kernel.org/r/20230913221104.429825-7-dhavale@google.com
Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
lib/namei.c

index 45dbcd35b3462e6eaf19a01741a670d9dbecbd0b..294d7a3d2e950b2efec6895b7ad472e322638d9c 100644 (file)
@@ -262,7 +262,6 @@ static int link_path_walk(const char *name, struct nameidata *nd)
                if (ret)
                        return ret;
 
-               name = p;
                /* Skip until no more slashes. */
                for (name = p; *name == '/'; ++name)
                        ;