summaryrefslogtreecommitdiffhomepage
path: root/device.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2015-04-17 21:24:29 +0200
committerFelix Fietkau <nbd@openwrt.org>2015-04-17 21:26:39 +0200
commit7f5a597e21127ed30fb9dc579cf7defa46c7f3f2 (patch)
tree5381a12a20c4094c2a9b572e342fa5bc8e9e3ce6 /device.c
parent8b468ec5022834d04b6be1cf45b4fe4f092c692e (diff)
device: remove DEV_ATTR_IFNAME, it is unused
Ensures that interfaces with only 'ifname' matching the device config don't cause iface->device_config to be set Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Diffstat (limited to 'device.c')
-rw-r--r--device.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/device.c b/device.c
index 24c7fe3..092c2d9 100644
--- a/device.c
+++ b/device.c
@@ -32,7 +32,6 @@ static struct avl_tree devices;
static const struct blobmsg_policy dev_attrs[__DEV_ATTR_MAX] = {
[DEV_ATTR_TYPE] = { .name = "type", .type = BLOBMSG_TYPE_STRING },
- [DEV_ATTR_IFNAME] = { .name = "ifname", .type = BLOBMSG_TYPE_ARRAY },
[DEV_ATTR_MTU] = { .name = "mtu", .type = BLOBMSG_TYPE_INT32 },
[DEV_ATTR_MACADDR] = { .name = "macaddr", .type = BLOBMSG_TYPE_STRING },
[DEV_ATTR_TXQUEUELEN] = { .name = "txqueuelen", .type = BLOBMSG_TYPE_INT32 },