svn commit: r309927 - head/sys/kern

Edward Tomasz Napierala trasz at FreeBSD.org
Mon Dec 12 19:11:06 UTC 2016


Author: trasz
Date: Mon Dec 12 19:11:04 2016
New Revision: 309927
URL: https://svnweb.freebsd.org/changeset/base/309927

Log:
  Undo r309891.  Konstantin is right in that this condition normally
  cannot happen - the um_dev field is assigned at mount and never written
  to afterwards.

Modified:
  head/sys/kern/kern_conf.c

Modified: head/sys/kern/kern_conf.c
==============================================================================
--- head/sys/kern/kern_conf.c	Mon Dec 12 19:10:39 2016	(r309926)
+++ head/sys/kern/kern_conf.c	Mon Dec 12 19:11:04 2016	(r309927)
@@ -1230,9 +1230,6 @@ const char *
 devtoname(struct cdev *dev)
 {
 
-	if (dev == NULL)
-		return (NULL);
-
 	return (dev->si_name);
 }
 


More information about the svn-src-head mailing list