svn commit: r214125 - head/sys/kern

Xin LI delphij at FreeBSD.org
Thu Oct 21 08:57:26 UTC 2010


Author: delphij
Date: Thu Oct 21 08:57:25 2010
New Revision: 214125
URL: http://svn.freebsd.org/changeset/base/214125

Log:
  In syscall_module_handler(): all switch branches return, remove
  unreached code as pointed out in a Chinese forum [1].
  
  [1] http://www.freebsdchina.org/forum/viewtopic.php?t=50619
  
  Pointed out by:		btw616 <btw s qq com>
  MFC after:		1 month

Modified:
  head/sys/kern/kern_syscalls.c

Modified: head/sys/kern/kern_syscalls.c
==============================================================================
--- head/sys/kern/kern_syscalls.c	Thu Oct 21 06:52:14 2010	(r214124)
+++ head/sys/kern/kern_syscalls.c	Thu Oct 21 08:57:25 2010	(r214125)
@@ -184,10 +184,7 @@ syscall_module_handler(struct module *mo
 		return EOPNOTSUPP;
 	}
 
-	if (data->chainevh)
-		return (data->chainevh(mod, what, data->chainarg));
-	else
-		return (0);
+	/* NOTREACHED */
 }
 
 int


More information about the svn-src-head mailing list