Skip to content

Commit 017f77c

Browse files
a3a3elummakynes
authored andcommitted
netfilter: ipset: add a coding-style fix to ip_set_ext_destroy.
Use a local variable to hold comment in order to align the arguments of ip_set_comment_free properly. Signed-off-by: Jeremy Sowden <jeremy@azazel.net> Acked-by: Jozsef Kadlecsik <kadlec@netfilter.org> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
1 parent fbe3d0c commit 017f77c

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

‎include/linux/netfilter/ipset/ip_set.h‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -269,9 +269,11 @@ ip_set_ext_destroy(struct ip_set *set, void *data)
269269
/* Check that the extension is enabled for the set and
270270
* call it's destroy function for its extension part in data.
271271
*/
272-
if (SET_WITH_COMMENT(set))
273-
ip_set_extensions[IPSET_EXT_ID_COMMENT].destroy(
274-
set, ext_comment(data, set));
272+
if (SET_WITH_COMMENT(set)) {
273+
struct ip_set_comment *c = ext_comment(data, set);
274+
275+
ip_set_extensions[IPSET_EXT_ID_COMMENT].destroy(set, c);
276+
}
275277
}
276278

277279
static inline int

0 commit comments

Comments
 (0)