diff options
author | wollman <wollman@FreeBSD.org> | 2009-11-25 04:21:42 +0000 |
---|---|---|
committer | wollman <wollman@FreeBSD.org> | 2009-11-25 04:21:42 +0000 |
commit | f44a6f4d8d88c80474b25b8be3da936d6c652bb1 (patch) | |
tree | 31ee8e2cf3e03353f79209fa074093c38fd9e424 /lib/libc | |
parent | c7017d0550079fead9d0fe4bf431577d879ca9a8 (diff) | |
download | FreeBSD-src-f44a6f4d8d88c80474b25b8be3da936d6c652bb1.zip FreeBSD-src-f44a6f4d8d88c80474b25b8be3da936d6c652bb1.tar.gz |
Eliminate dead store.
Found by: Clang static analyzer
MFC after: 7 days
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/stdio/fvwrite.c | 2 |
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) |