From: Ben Pfaff Date: Sun, 15 Mar 2009 03:49:58 +0000 (-0700) Subject: brcompat: Fix sign of return value. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c5eb603cd97bff8526ddbc6077e164124b8b8f95;p=openvswitch brcompat: Fix sign of return value. Thanks to Justin for pointing this out. --- diff --git a/datapath/brcompat.c b/datapath/brcompat.c index 10d8c8ce..709c838c 100644 --- a/datapath/brcompat.c +++ b/datapath/brcompat.c @@ -405,7 +405,7 @@ int brc_send_port_add_del(struct net_device *dev, struct net_device *port, dev = __dev_get_by_index(&init_net, dev_ifindex); port = __dev_get_by_index(&init_net, port_ifindex); if (!dev || !port) - return ENODEV; + return -ENODEV; if (add && port->br_port) return port->br_port->dev ? 0 : -EBUSY;