Module Name:    src
Committed By:   dholland
Date:           Thu Mar 24 02:29:33 UTC 2011

Modified Files:
        src/lib/libc/stdio: fvwrite.c

Log Message:
Eliminate dead store. From Henning Petersen in PR 42776. Doesn't change
the output .o file.


To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.22 src/lib/libc/stdio/fvwrite.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libc/stdio/fvwrite.c
diff -u src/lib/libc/stdio/fvwrite.c:1.21 src/lib/libc/stdio/fvwrite.c:1.22
--- src/lib/libc/stdio/fvwrite.c:1.21	Sun Oct 25 20:44:13 2009
+++ src/lib/libc/stdio/fvwrite.c	Thu Mar 24 02:29:33 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: fvwrite.c,v 1.21 2009/10/25 20:44:13 christos Exp $	*/
+/*	$NetBSD: fvwrite.c,v 1.22 2011/03/24 02:29:33 dholland Exp $	*/
 
 /*-
  * Copyright (c) 1990, 1993
@@ -37,7 +37,7 @@
 #if 0
 static char sccsid[] = "@(#)fvwrite.c	8.1 (Berkeley) 6/4/93";
 #else
-__RCSID("$NetBSD: fvwrite.c,v 1.21 2009/10/25 20:44:13 christos Exp $");
+__RCSID("$NetBSD: fvwrite.c,v 1.22 2011/03/24 02:29:33 dholland Exp $");
 #endif
 #endif /* LIBC_SCCS and not lint */
 
@@ -75,7 +75,7 @@
 		errno = EINVAL;
 		return (EOF);
 	}
-	if ((len = uio->uio_resid) == 0)
+	if (uio->uio_resid == 0)
 		return (0);
 	/* make sure we can write */
 	if (cantwrite(fp)) {

Reply via email to