diff options
author | Yousong Zhou <yszhou4tech@gmail.com> | 2015-05-19 20:38:30 +0800 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2015-05-23 16:44:46 +0200 |
commit | f4f4f0b8d905231655b2a6fa20af4cc8b092d91e (patch) | |
tree | 73e078c43053667eb0a5aa88eccb9604cd0e4f9f /interface.c | |
parent | 1ec1c66f203f2ace5124996e1d765d58fc925ce0 (diff) |
interface: remove redundant iface_attr_info.
BLOBMSG_TYPE_STRING is the default type for elements of
BLOBMSG_TYPE_ARRAY. Array type IFACE_ATTR_DNS_SEARCH was already
missing there, so drop the whole part anyway.
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
Diffstat (limited to 'interface.c')
-rw-r--r-- | interface.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/interface.c b/interface.c index ea018ad..ef70dea 100644 --- a/interface.c +++ b/interface.c @@ -68,15 +68,9 @@ static const struct blobmsg_policy iface_attrs[IFACE_ATTR_MAX] = { [IFACE_ATTR_FORCE_LINK] = { .name = "force_link", .type = BLOBMSG_TYPE_BOOL }, }; -static const struct uci_blob_param_info iface_attr_info[IFACE_ATTR_MAX] = { - [IFACE_ATTR_DNS] = { .type = BLOBMSG_TYPE_STRING }, - [IFACE_ATTR_IP6CLASS] = { .type = BLOBMSG_TYPE_STRING }, -}; - const struct uci_blob_param_list interface_attr_list = { .n_params = IFACE_ATTR_MAX, .params = iface_attrs, - .info = iface_attr_info, }; static void |