summaryrefslogtreecommitdiffhomepage
path: root/vlan.c
diff options
context:
space:
mode:
Diffstat (limited to 'vlan.c')
-rw-r--r--vlan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vlan.c b/vlan.c
index 9a6e2b6..785cc9e 100644
--- a/vlan.c
+++ b/vlan.c
@@ -145,7 +145,7 @@ struct device *get_vlan_device_chain(const char *ifname, bool create)
s = split_vlan(buf);
dev = device_get(buf, create);
- if (!dev && !create)
+ if (!dev)
goto error;
do {