From: Eric Dumazet Date: Mon, 15 Nov 2010 17:45:12 +0000 (+0100) Subject: netfilter: nf_nat_amanda: rename a variable X-Git-Tag: MMI-PSA29.97-13-9~20520^2~510^2~29 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ab0cba25128e1435a59b1ec4ae0c7505548fed87;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git netfilter: nf_nat_amanda: rename a variable Avoid a sparse warning about 'ret' variable shadowing Signed-off-by: Eric Dumazet Signed-off-by: Patrick McHardy --- diff --git a/net/ipv4/netfilter/nf_nat_amanda.c b/net/ipv4/netfilter/nf_nat_amanda.c index 0f23b3f06df0..703f366fd235 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; }