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);
 }
 
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to