From 7ea9eb9f7c82008b9f367578c75836db46e12a34 Mon Sep 17 00:00:00 2001 From: "Simon J. Gerraty" Date: Mon, 1 Jun 2020 23:44:03 +0000 Subject: [PATCH] stand/uboot: fix setting of gateip.s_addr Missplaced paren. Reviewed by: imp MFC after: 1 week --- stand/uboot/lib/net.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stand/uboot/lib/net.c b/stand/uboot/lib/net.c index 2e1b9ab4caa..81b8c5bc9f5 100644 --- a/stand/uboot/lib/net.c +++ b/stand/uboot/lib/net.c @@ -187,7 +187,7 @@ get_env_net_params() rootip.s_addr = 0; return; } - if ((gateip.s_addr = inet_addr(envstr) == INADDR_NONE)) { + if ((gateip.s_addr = inet_addr(envstr)) == INADDR_NONE) { printf("Could not parse gatewayip '%s'\n", envstr); rootip.s_addr = 0; return;