History

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.

Jeremy Sowden committed 7 years ago

Commit 017f77c1 parent fbe3d0c1 file · +5 −3Browse files

Showing the changes to include/linux (1 of 1 file). Show all

Unified · Split

include/linux/netfilter/ipset/ip_set.h+5−3
@@ -269,9 +269,11 @@ ip_set_ext_destroy(struct ip_set *set, void *data) · 268 unmodified lines
269 /* Check that the extension is enabled for the set and269 /* Check that the extension is enabled for the set and
270 * call it's destroy function for its extension part in data.270 * call it's destroy function for its extension part in data.
271 */271 */
272 if (SET_WITH_COMMENT(set))272 if (SET_WITH_COMMENT(set)) {
273 ip_set_extensions[IPSET_EXT_ID_COMMENT].destroy(273 struct ip_set_comment *c = ext_comment(data, set);
274 set, ext_comment(data, set));274
275 ip_set_extensions[IPSET_EXT_ID_COMMENT].destroy(set, c);
276 }
275}277}
276 278
277static inline int279static inline int

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t