aboutsummaryrefslogtreecommitdiffstats
path: root/net/netfilter
diff options
context:
space:
mode:
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>2016-02-23 03:10:10 -0500
committerPablo Neira Ayuso <pablo@netfilter.org>2016-02-29 07:59:43 -0500
commit8ee225e78531981e479e79b74354b63e188b4ee2 (patch)
treec5a24c8f105c2b1a76f47172038ce1e14824f1bb /net/netfilter
parentb07edbe1cf3dae9ba81f24888e2f2a9dbe778918 (diff)
netfilter: xt_osf: remove unused variable
While building with W=1 we got the warning: net/netfilter/xt_osf.c:265:9: warning: variable 'loop_cont' set but not used The local variable loop_cont was only initialized and then assigned a value but was never used or checked after that. While removing the variable, the case of OSFOPT_TS was not removed so that it will serve as a reminder to us that we can do something in that particular case. Signed-off-by: Sudip Mukherjee <sudip.mukherjee@codethink.co.uk> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/netfilter')
-rw-r--r--net/netfilter/xt_osf.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/net/netfilter/xt_osf.c b/net/netfilter/xt_osf.c
index 4e3c3affd285..2455b69b5810 100644
--- a/net/netfilter/xt_osf.c
+++ b/net/netfilter/xt_osf.c
@@ -262,7 +262,6 @@ xt_osf_match_packet(const struct sk_buff *skb, struct xt_action_param *p)
262 if (f->opt[optnum].kind == (*optp)) { 262 if (f->opt[optnum].kind == (*optp)) {
263 __u32 len = f->opt[optnum].length; 263 __u32 len = f->opt[optnum].length;
264 const __u8 *optend = optp + len; 264 const __u8 *optend = optp + len;
265 int loop_cont = 0;
266 265
267 fmatch = FMATCH_OK; 266 fmatch = FMATCH_OK;
268 267
@@ -275,7 +274,6 @@ xt_osf_match_packet(const struct sk_buff *skb, struct xt_action_param *p)
275 mss = ntohs((__force __be16)mss); 274 mss = ntohs((__force __be16)mss);
276 break; 275 break;
277 case OSFOPT_TS: 276 case OSFOPT_TS:
278 loop_cont = 1;
279 break; 277 break;
280 } 278 }
281 279