svn commit: r237485 - stable/9/sys/kern

Davide Italiano davide at FreeBSD.org
Sat Jun 23 17:39:41 UTC 2012


Author: davide
Date: Sat Jun 23 17:39:40 2012
New Revision: 237485
URL: http://svn.freebsd.org/changeset/base/237485

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/9/sys/kern/sys_generic.c
Directory Properties:
  stable/9/sys/   (props changed)

Modified: stable/9/sys/kern/sys_generic.c
==============================================================================
--- stable/9/sys/kern/sys_generic.c	Sat Jun 23 15:36:32 2012	(r237484)
+++ stable/9/sys/kern/sys_generic.c	Sat Jun 23 17:39:40 2012	(r237485)
@@ -1255,7 +1255,7 @@ sys_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;
 


More information about the svn-src-stable-9 mailing list