summaryrefslogtreecommitdiffhomepage
path: root/vlan.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2011-10-05 19:52:44 +0200
committerFelix Fietkau <nbd@openwrt.org>2011-10-05 19:52:44 +0200
commitcd51d94890e819e6e72fd9dc221716131e69dea7 (patch)
tree0d848495754e896bfa0ec8eac200c47089c7fd1c /vlan.c
parent172bb90bce0354ed9a2d1e62bbe3daee45b32058 (diff)
rename a variable for clarity
Diffstat (limited to 'vlan.c')
-rw-r--r--vlan.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/vlan.c b/vlan.c
index d00cda0..3085868 100644
--- a/vlan.c
+++ b/vlan.c
@@ -120,7 +120,7 @@ out:
struct device *get_vlan_device_chain(const char *ifname, bool create)
{
- struct device *iface = NULL;
+ struct device *dev = NULL;
char *buf, *s, *next, *err = NULL;
int id;
@@ -129,8 +129,8 @@ struct device *get_vlan_device_chain(const char *ifname, bool create)
return NULL;
s = split_vlan(buf);
- iface = device_get(buf, create);
- if (!iface && !create)
+ dev = device_get(buf, create);
+ if (!dev && !create)
goto error;
do {
@@ -139,8 +139,8 @@ struct device *get_vlan_device_chain(const char *ifname, bool create)
if (err && *err)
goto error;
- iface = get_vlan_device(iface, id, create);
- if (!iface)
+ dev = get_vlan_device(dev, id, create);
+ if (!dev)
goto error;
s = next;
@@ -149,8 +149,8 @@ struct device *get_vlan_device_chain(const char *ifname, bool create)
} while (1);
error:
- iface = NULL;
+ dev = NULL;
out:
free(buf);
- return iface;
+ return dev;
}