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>
This commit is contained in:

committed by
David S. Miller

parent
d340c862e7
commit
059a2440fd
@@ -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.
|
||||
|
Reference in New Issue
Block a user