diff options
author | Eric Dumazet <eric.dumazet@gmail.com> | 2010-11-15 17:45:12 (GMT) |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2010-11-15 17:45:12 (GMT) |
commit | ab0cba25128e1435a59b1ec4ae0c7505548fed87 (patch) | |
tree | 30d84637c0e879cdddae27096e605a22f1db3972 /net | |
parent | eb733162ae4f69b93f7c08012e6e239f31796de8 (diff) | |
download | linux-fsl-qoriq-ab0cba25128e1435a59b1ec4ae0c7505548fed87.tar.xz |
netfilter: nf_nat_amanda: rename a variable
Avoid a sparse warning about 'ret' variable shadowing
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/ipv4/netfilter/nf_nat_amanda.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/net/ipv4/netfilter/nf_nat_amanda.c b/net/ipv4/netfilter/nf_nat_amanda.c index 0f23b3f..703f366f 100644 --- a/net/ipv4/netfilter/nf_nat_amanda.c +++ b/net/ipv4/netfilter/nf_nat_amanda.c @@ -44,13 +44,13 @@ static unsigned int help(struct sk_buff *skb, /* Try to get same port: if not, try to change it. */ for (port = ntohs(exp->saved_proto.tcp.port); port != 0; port++) { - int ret; + int res; exp->tuple.dst.u.tcp.port = htons(port); - ret = nf_ct_expect_related(exp); - if (ret == 0) + res = nf_ct_expect_related(exp); + if (res == 0) break; - else if (ret != -EBUSY) { + else if (res != -EBUSY) { port = 0; break; } |