summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorian <ian@FreeBSD.org>2014-03-17 13:54:53 +0000
committerian <ian@FreeBSD.org>2014-03-17 13:54:53 +0000
commitf5f6c3f801ae6098078d67e3fc24f29522cb1226 (patch)
treec97c2b7a5af0a9eaf2b4d7a0dbc966acf2b25203
parent7802205b1afaa7d76a58e5652fb120a5a46ea2b2 (diff)
downloadFreeBSD-src-f5f6c3f801ae6098078d67e3fc24f29522cb1226.zip
FreeBSD-src-f5f6c3f801ae6098078d67e3fc24f29522cb1226.tar.gz
Fix the paren nesting so that the network device is probed if the load
device type is either network or wildcard.
-rw-r--r--sys/boot/uboot/common/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/boot/uboot/common/main.c b/sys/boot/uboot/common/main.c
index 20d3850..833beed 100644
--- a/sys/boot/uboot/common/main.c
+++ b/sys/boot/uboot/common/main.c
@@ -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;
}
OpenPOWER on IntegriCloud