Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ab0cba25 authored by Eric Dumazet's avatar Eric Dumazet Committed by Patrick McHardy
Browse files

netfilter: nf_nat_amanda: rename a variable



Avoid a sparse warning about 'ret' variable shadowing

Signed-off-by: default avatarEric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: default avatarPatrick McHardy <kaber@trash.net>
parent eb733162
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -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;
		}