Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 23 Jun 2012 17:42:37 +0000 (UTC)
From:      Davide Italiano <davide@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org
Subject:   svn commit: r237486 - stable/8/sys/kern
Message-ID:  <201206231742.q5NHgbcK054904@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: davide
Date: Sat Jun 23 17:42:37 2012
New Revision: 237486
URL: http://svn.freebsd.org/changeset/base/237486

Log:
  MFC r237195:
  
  The variable 'error' in sys_poll() is initialized in declaration to value
  zero but in any case is overwritten by successive copyin(), making the
  previous initialization useless. Remove this.
  As an added bonus this fixes a style(9) bug.
  
  Approved by:		gnn (mentor)

Modified:
  stable/8/sys/kern/sys_generic.c
Directory Properties:
  stable/8/sys/   (props changed)

Modified: stable/8/sys/kern/sys_generic.c
==============================================================================
--- stable/8/sys/kern/sys_generic.c	Sat Jun 23 17:39:40 2012	(r237485)
+++ stable/8/sys/kern/sys_generic.c	Sat Jun 23 17:42:37 2012	(r237486)
@@ -1208,7 +1208,7 @@ poll(td, uap)
 	struct pollfd *bits;
 	struct pollfd smallbits[32];
 	struct timeval atv, rtv, ttv;
-	int error = 0, timo;
+	int error, timo;
 	u_int nfds;
 	size_t ni;
 



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