diff options
Diffstat (limited to 'net/netlink/genetlink.c')
-rw-r--r-- | net/netlink/genetlink.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/netlink/genetlink.c b/net/netlink/genetlink.c index b5df749cba8f..548e4e6e698f 100644 --- a/net/netlink/genetlink.c +++ b/net/netlink/genetlink.c | |||
@@ -144,9 +144,9 @@ int genl_register_ops(struct genl_family *family, struct genl_ops *ops) | |||
144 | } | 144 | } |
145 | 145 | ||
146 | if (ops->dumpit) | 146 | if (ops->dumpit) |
147 | ops->flags |= GENL_CMD_CAP_DO; | ||
148 | if (ops->doit) | ||
149 | ops->flags |= GENL_CMD_CAP_DUMP; | 147 | ops->flags |= GENL_CMD_CAP_DUMP; |
148 | if (ops->doit) | ||
149 | ops->flags |= GENL_CMD_CAP_DO; | ||
150 | if (ops->policy) | 150 | if (ops->policy) |
151 | ops->flags |= GENL_CMD_CAP_HASPOL; | 151 | ops->flags |= GENL_CMD_CAP_HASPOL; |
152 | 152 | ||