Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Nov 2009 04:21:42 +0000 (UTC)
From:      Garrett Wollman <wollman@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r199781 - head/lib/libc/stdio
Message-ID:  <200911250421.nAP4LgKp038921@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200911250421.nAP4LgKp038921>