Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc/stdio Eliminate dead store. From Henning Petersen i...



details:   https://anonhg.NetBSD.org/src/rev/584ece4a5941
branches:  trunk
changeset: 763535:584ece4a5941
user:      dholland <dholland%NetBSD.org@localhost>
date:      Thu Mar 24 02:29:33 2011 +0000

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

diffstat:

 lib/libc/stdio/fvwrite.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 3149ed85875e -r 584ece4a5941 lib/libc/stdio/fvwrite.c
--- a/lib/libc/stdio/fvwrite.c  Wed Mar 23 20:54:35 2011 +0000
+++ b/lib/libc/stdio/fvwrite.c  Thu Mar 24 02:29:33 2011 +0000
@@ -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)) {



Home | Main Index | Thread Index | Old Index