diff options
author | Bojan Prtvar <prtvar.b@gmail.com> | 2015-02-22 11:46:35 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-02-22 15:59:54 -0500 |
commit | 059a2440fd3cf4ec57735db2c0a90401cde84fca (patch) | |
tree | ae1cc62a03192b53b6d4c1eb14b50d534b385797 /include | |
parent | d340c862e760815bca2f2a4d8fd91dff4646a955 (diff) |
net: Remove state argument from skb_find_text()
Although it is clear that textsearch state is intentionally passed to
skb_find_text() as uninitialized argument, it was never used by the
callers. Therefore, we can simplify skb_find_text() by making it
local variable.
Signed-off-by: Bojan Prtvar <prtvar.b@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/skbuff.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h index 30007afe70b3..d898b32dedcc 100644 --- a/include/linux/skbuff.h +++ b/include/linux/skbuff.h @@ -870,8 +870,7 @@ unsigned int skb_seq_read(unsigned int consumed, const u8 **data, void skb_abort_seq_read(struct skb_seq_state *st); unsigned int skb_find_text(struct sk_buff *skb, unsigned int from, - unsigned int to, struct ts_config *config, - struct ts_state *state); + unsigned int to, struct ts_config *config); /* * Packet hash types specify the type of hash in skb_set_hash. |