Author: ian
Date: Mon Mar 17 13:54:53 2014
New Revision: 263265
URL: http://svnweb.freebsd.org/changeset/base/263265

Log:
  Fix the paren nesting so that the network device is probed if the load
  device type is either network or wildcard.

Modified:
  head/sys/boot/uboot/common/main.c

Modified: head/sys/boot/uboot/common/main.c
==============================================================================
--- head/sys/boot/uboot/common/main.c   Mon Mar 17 11:58:48 2014        
(r263264)
+++ head/sys/boot/uboot/common/main.c   Mon Mar 17 13:54:53 2014        
(r263265)
@@ -446,8 +446,8 @@ main(void)
                                break;
                }
 
-               if (load_type == -1 || ((load_type & DEV_TYP_NET) &&
-                   strcmp(devsw[i]->dv_name, "net") == 0))
+               if ((load_type == -1 || (load_type & DEV_TYP_NET)) &&
+                   strcmp(devsw[i]->dv_name, "net") == 0)
                        break;
        }
 
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to