From: Bojan Prtvar Date: Mon, 8 Sep 2014 07:51:12 +0000 (+0200) Subject: netfilter: xt_string: Remove unnecessary initialization of struct ts_state X-Git-Tag: MMI-PSA29.97-13-9~11350^2~101^2~7 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c435201bede79735c23d6961ce369034f193e633;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git netfilter: xt_string: Remove unnecessary initialization of struct ts_state The skb_find_text() accepts uninitialized textsearch state variable. Signed-off-by: Bojan Prtvar Signed-off-by: Pablo Neira Ayuso --- diff --git a/net/netfilter/xt_string.c b/net/netfilter/xt_string.c index d3c48b14ab94..5699adb97652 100644 --- a/net/netfilter/xt_string.c +++ b/net/netfilter/xt_string.c @@ -29,7 +29,6 @@ string_mt(const struct sk_buff *skb, struct xt_action_param *par) struct ts_state state; bool invert; - memset(&state, 0, sizeof(struct ts_state)); invert = conf->u.v1.flags & XT_STRING_FLAG_INVERT; return (skb_find_text((struct sk_buff *)skb, conf->from_offset,