NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
lib/42776: Eliminate dead store in fvwrite.c
>Number: 42776
>Category: lib
>Synopsis: Eliminate dead store in fvwrite.c
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: lib-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Feb 09 09:15:00 +0000 2010
>Originator: Henning Petersen
>Release: NetBSD-current
>Organization:
>Environment:
>Description:
Eliminate dead store in fvwrite.c .
>How-To-Repeat:
>Fix:
diff -u -r1.21 fvwrite.c
--- lib/libc/stdio/fvwrite.c 25 Oct 2009 20:44:13 -0000 1.21
+++ lib/libc/stdio/fvwrite.c 9 Feb 2010 08:32:58 -0000
@@ -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