Skip to content

Commit b3065bd

Browse files
René Scharfegitster
authored andcommitted
config: remove useless assignment
v1.7.9-8-g270a344 (config: stop using config_exclusive_filename) replaced config_exclusive_filename with given_config_file. In one case this resulted in a self-assignment, which is reported by clang as a warning. Remove the useless code. Signed-off-by: Rene Scharfe <[email protected]> Acked-by: Jeff King <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 455cf26 commit b3065bd

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

builtin/config.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -397,8 +397,6 @@ int cmd_config(int argc, const char **argv, const char *prefix)
397397
xstrdup(prefix_filename(prefix,
398398
strlen(prefix),
399399
given_config_file));
400-
else
401-
given_config_file = given_config_file;
402400
}
403401

404402
if (respect_includes == -1)

0 commit comments

Comments
 (0)