From c5eb603cd97bff8526ddbc6077e164124b8b8f95 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Sat, 14 Mar 2009 20:49:58 -0700 Subject: [PATCH] brcompat: Fix sign of return value. Thanks to Justin for pointing this out. --- datapath/brcompat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.30.2