projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cdec268
)
net: netfilter: Use list_{next/prev}_entry instead of list_entry
author
simran singhal
<singhalsimran0@gmail.com>
Wed, 29 Mar 2017 05:45:40 +0000
(11:15 +0530)
committer
Pablo Neira Ayuso
<pablo@netfilter.org>
Fri, 7 Apr 2017 15:33:02 +0000
(17:33 +0200)
This patch replace list_entry with list_prev_entry as it makes the
code more clear to read.
Signed-off-by: simran singhal <singhalsimran0@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_tables_api.c
patch
|
blob
|
history
diff --git
a/net/netfilter/nf_tables_api.c
b/net/netfilter/nf_tables_api.c
index
7ba76da
..
22e191a
100644
(file)
--- a/
net/netfilter/nf_tables_api.c
+++ b/
net/netfilter/nf_tables_api.c
@@
-1905,7
+1905,7
@@
static int nf_tables_fill_rule_info(struct sk_buff *skb, struct net *net,
goto nla_put_failure;
if ((event != NFT_MSG_DELRULE) && (rule->list.prev != &chain->rules)) {
- prule = list_
entry(rule->list.prev, struct nft_
rule, list);
+ prule = list_
prev_entry(
rule, list);
if (nla_put_be64(skb, NFTA_RULE_POSITION,
cpu_to_be64(prule->handle),
NFTA_RULE_PAD))