summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorwollman <wollman@FreeBSD.org>2009-11-25 04:21:42 +0000
committerwollman <wollman@FreeBSD.org>2009-11-25 04:21:42 +0000
commitf44a6f4d8d88c80474b25b8be3da936d6c652bb1 (patch)
tree31ee8e2cf3e03353f79209fa074093c38fd9e424 /lib
parentc7017d0550079fead9d0fe4bf431577d879ca9a8 (diff)
downloadFreeBSD-src-f44a6f4d8d88c80474b25b8be3da936d6c652bb1.zip
FreeBSD-src-f44a6f4d8d88c80474b25b8be3da936d6c652bb1.tar.gz
Eliminate dead store.
Found by: Clang static analyzer MFC after: 7 days
Diffstat (limited to 'lib')
-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 fd69eb9..7206676 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)
OpenPOWER on IntegriCloud