summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2016-04-26 12:14:10 +0200
committerTobias Klauser <tklauser@distanz.ch>2016-04-26 12:14:10 +0200
commit4cc9f0befecc409684adab0b2924a763ec31b807 (patch)
tree6082f23f8fef21d935abeca89bd389bbae30576a
parentdc504fa7f8ff8672f47ad339b4d2f73d594b293a (diff)
flowtop: Use fl argument instead of hard coded global flow_list
The only place where flow_list_update_entry() is called passes the global flow_list anyway, so use the passed argument instead of the global. This fixes the following -Wunused-parameter warning: flowtop.c: In function ‘flow_list_update_entry’: flowtop.c:1438:53: warning: unused parameter ‘fl’ [-Wunused-parameter] static int flow_list_update_entry(struct flow_list *fl, struct nf_conntrack *ct) Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
-rw-r--r--flowtop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/flowtop.c b/flowtop.c
index 848fd6a..b2f67ea 100644
--- a/flowtop.c
+++ b/flowtop.c
@@ -1439,7 +1439,7 @@ static int flow_list_update_entry(struct flow_list *fl, struct nf_conntrack *ct)
{
struct flow_entry *n;
- n = flow_list_find_id(&flow_list, nfct_get_attr_u32(ct, ATTR_ID));
+ n = flow_list_find_id(fl, nfct_get_attr_u32(ct, ATTR_ID));
if (!n)
return NFCT_CB_CONTINUE;
Anvin" <hpa@zytor.com> Cc: Alistair Popple <apopple@au1.ibm.com> Cc: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> Cc: Bharata B Rao <bharata@linux.vnet.ibm.com> Cc: Frank Rowand <frowand.list@gmail.com> Cc: Ingo Molnar <mingo@redhat.com> Cc: Michael Ellerman <mpe@ellerman.id.au> Cc: Nathan Fontenot <nfont@linux.vnet.ibm.com> Cc: Paul Mackerras <paulus@samba.org> Cc: Rob Herring <robh+dt@kernel.org> Cc: Stewart Smith <stewart@linux.vnet.ibm.com> Cc: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'Documentation')