From: Ben Pfaff Date: Thu, 8 Jan 2009 23:25:24 +0000 (-0800) Subject: Remove comparison of unsigned value < 0. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5295686039527499983996b2175d772c569d01bc;p=openvswitch Remove comparison of unsigned value < 0. Found by -Wextra. --- diff --git a/lib/dhcp-client.c b/lib/dhcp-client.c index 77d38190..d12ac3d4 100644 --- a/lib/dhcp-client.c +++ b/lib/dhcp-client.c @@ -573,7 +573,7 @@ static bool dhcp_receive(struct dhclient *cli, unsigned int msgs, struct dhcp_msg *msg) { while (do_receive_msg(cli, msg)) { - if (msg->type < 0 || msg->type > 31 || !((1u << msg->type) & msgs)) { + if (msg->type > 31 || !((1u << msg->type) & msgs)) { VLOG_DBG_RL(&rl, "received unexpected %s in %s state: %s", dhcp_type_name(msg->type), state_name(cli->state), dhcp_msg_to_string(msg, false, &cli->s));