rtnl_configure_link is always checked if < 0 for error code.

Signed-off-by: Fabian Frederick <f...@skynet.be>
---
 drivers/net/vxlan.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/vxlan.c b/drivers/net/vxlan.c
index 14f903d09c010..1e9ab1002281c 100644
--- a/drivers/net/vxlan.c
+++ b/drivers/net/vxlan.c
@@ -3890,7 +3890,7 @@ static int __vxlan_dev_create(struct net *net, struct 
net_device *dev,
        }
 
        err = rtnl_configure_link(dev, NULL);
-       if (err)
+       if (err < 0)
                goto unlink;
 
        if (f) {
-- 
2.27.0

Reply via email to