Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Mar 2014 13:54:53 +0000 (UTC)
From:      Ian Lepore <ian@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r263265 - head/sys/boot/uboot/common
Message-ID:  <201403171354.s2HDsr8h075885@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;
 	}
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201403171354.s2HDsr8h075885>