aboutsummaryrefslogtreecommitdiff
path: root/sys/boot/common/misc.c
diff options
context:
space:
mode:
authorColin Percival <cperciva@FreeBSD.org>2008-08-04 06:39:52 +0000
committerColin Percival <cperciva@FreeBSD.org>2008-08-04 06:39:52 +0000
commit5fe69bb518da768910eed2f88c32f018721ce718 (patch)
tree2ac1f33f454d0f949f4b8e9718c2b79c2eef55f4 /sys/boot/common/misc.c
parent3d85c23dc67b9b9274b0eb11d787eba18c89c112 (diff)
downloadsrc-5fe69bb518da768910eed2f88c32f018721ce718.tar.gz
src-5fe69bb518da768910eed2f88c32f018721ce718.zip
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
Notes
Notes: svn path=/head/; revision=181278
Diffstat (limited to 'sys/boot/common/misc.c')
-rw-r--r--sys/boot/common/misc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/boot/common/misc.c b/sys/boot/common/misc.c
index f1a049194cef..c4c36ea9a4e8 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)