X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fofp-util.c;fp=lib%2Fofp-util.c;h=34255da2f4153bc73c6a1e7323c6ae521f1ba590;hb=e3432ee978b4fd740aa4db785742a28a573e2cde;hp=419a1cd471a1eb5e8a078082c4d22dadc0d6976a;hpb=8010100bb17598479d1b3bb06452546075038f6f;p=openvswitch diff --git a/lib/ofp-util.c b/lib/ofp-util.c index 419a1cd4..34255da2 100644 --- a/lib/ofp-util.c +++ b/lib/ofp-util.c @@ -3562,10 +3562,7 @@ ofputil_port_from_string(const char *s, uint16_t *portp) *portp = 0; if (str_to_uint(s, 10, &port32)) { - if (port32 == 0) { - VLOG_WARN("port 0 is not a valid OpenFlow port number"); - return false; - } else if (port32 < OFPP_MAX) { + if (port32 < OFPP_MAX) { *portp = port32; return true; } else if (port32 < OFPP_FIRST_RESV) {