svn commit: r199781 - head/lib/libc/stdio
Garrett Wollman
wollman at FreeBSD.org
Wed Nov 25 04:21:43 UTC 2009
Author: wollman
Date: Wed Nov 25 04:21:42 2009
New Revision: 199781
URL: http://svn.freebsd.org/changeset/base/199781
Log:
Eliminate dead store.
Found by: Clang static analyzer
MFC after: 7 days
Modified:
head/lib/libc/stdio/fvwrite.c
Modified: head/lib/libc/stdio/fvwrite.c
==============================================================================
--- head/lib/libc/stdio/fvwrite.c Wed Nov 25 02:39:33 2009 (r199780)
+++ head/lib/libc/stdio/fvwrite.c Wed Nov 25 04:21:42 2009 (r199781)
@@ -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)
More information about the svn-src-all
mailing list