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>
This commit is contained in:
Eric Dumazet
2010-11-15 18:45:12 +01:00
committed by Patrick McHardy
parent eb733162ae
commit ab0cba2512

View File

@@ -44,13 +44,13 @@ static unsigned int help(struct sk_buff *skb,
/* Try to get same port: if not, try to change it. */ /* Try to get same port: if not, try to change it. */
for (port = ntohs(exp->saved_proto.tcp.port); port != 0; port++) { for (port = ntohs(exp->saved_proto.tcp.port); port != 0; port++) {
int ret; int res;
exp->tuple.dst.u.tcp.port = htons(port); exp->tuple.dst.u.tcp.port = htons(port);
ret = nf_ct_expect_related(exp); res = nf_ct_expect_related(exp);
if (ret == 0) if (res == 0)
break; break;
else if (ret != -EBUSY) { else if (res != -EBUSY) {
port = 0; port = 0;
break; break;
} }