aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/stdio/fvwrite.c
diff options
context:
space:
mode:
authorGarrett Wollman <wollman@FreeBSD.org>2009-11-25 04:21:42 +0000
committerGarrett Wollman <wollman@FreeBSD.org>2009-11-25 04:21:42 +0000
commite40c32385d0574a75ddbe6d4e1400497189b3f6a (patch)
tree31ee8e2cf3e03353f79209fa074093c38fd9e424 /lib/libc/stdio/fvwrite.c
parentc3582a1967cd3dd042b5361fb2fd556004a0db07 (diff)
Eliminate dead store.
Found by: Clang static analyzer MFC after: 7 days
Notes
Notes: svn path=/head/; revision=199781
Diffstat (limited to 'lib/libc/stdio/fvwrite.c')
-rw-r--r--lib/libc/stdio/fvwrite.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/stdio/fvwrite.c b/lib/libc/stdio/fvwrite.c
index fd69eb954208..7206676869e6 100644
--- a/lib/libc/stdio/fvwrite.c
+++ b/lib/libc/stdio/fvwrite.c
@@ -60,7 +60,7 @@ __sfvwrite(fp, uio)
char *nl;
int nlknown, nldist;
- if ((len = uio->uio_resid) == 0)
+ if (uio->uio_resid == 0)
return (0);
/* make sure we can write */
if (prepwrite(fp) != 0)