diff options
author | cperciva <cperciva@FreeBSD.org> | 2008-08-04 06:39:52 +0000 |
---|---|---|
committer | cperciva <cperciva@FreeBSD.org> | 2008-08-04 06:39:52 +0000 |
commit | 55239b4ba74bfd89b442877e0a7eb19b238fada4 (patch) | |
tree | 2ac1f33f454d0f949f4b8e9718c2b79c2eef55f4 /sys/boot | |
parent | bfce43df588d6c27e2859a749c641a25969021b6 (diff) | |
download | FreeBSD-src-55239b4ba74bfd89b442877e0a7eb19b238fada4.zip FreeBSD-src-55239b4ba74bfd89b442877e0a7eb19b238fada4.tar.gz |
Setting a variable to the same value twice doesn't actually make it
more likely to have the right value. Remove superfluous assignments.
Found by: LLVM/Clang Static Checker
Diffstat (limited to 'sys/boot')
-rw-r--r-- | sys/boot/common/misc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/boot/common/misc.c b/sys/boot/common/misc.c index f1a0491..c4c36ea 100644 --- a/sys/boot/common/misc.c +++ b/sys/boot/common/misc.c @@ -42,7 +42,7 @@ unargv(int argc, char *argv[]) int i; char *cp; - for (hlong = 0, i = 0, hlong = 0; i < argc; i++) + for (i = 0, hlong = 0; i < argc; i++) hlong += strlen(argv[i]) + 2; if(hlong == 0) |