mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
const: struct nla_policy
Make remaining netlink policies as const. Fixup coding style where needed. Signed-off-by: Alexey Dobriyan <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
3ffe533c87
commit
b54452b07a
10 changed files with 22 additions and 33 deletions
|
|
@ -124,7 +124,7 @@ static int irda_nl_get_mode(struct sk_buff *skb, struct genl_info *info)
|
|||
return ret;
|
||||
}
|
||||
|
||||
static struct nla_policy irda_nl_policy[IRDA_NL_ATTR_MAX + 1] = {
|
||||
static const struct nla_policy irda_nl_policy[IRDA_NL_ATTR_MAX + 1] = {
|
||||
[IRDA_NL_ATTR_IFNAME] = { .type = NLA_NUL_STRING,
|
||||
.len = IFNAMSIZ-1 },
|
||||
[IRDA_NL_ATTR_MODE] = { .type = NLA_U32 },
|
||||
|
|
|
|||
Loading…
Reference in a new issue