Skip to contentSkip to conversation

net: netfilter: fix coding style

PATCH New Lin Zhang 1 participant 1 message Dec 5, 2017

Subsystems (3)
lore
Share & tools
lore

Lin Zhang

author
#0 lore raw

PATCH 1/1 net: netfilter: fix coding style

I think use variable 'min' instead of number '1024' is better.

---
 net/netfilter/nf_nat_proto_common.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
net/netfilter/nf_nat_proto_common.c +1 -1
index fbce552..e87e683 100644
@@ -67,7 +67,7 @@ void nf_nat_l4proto_unique_tuple(const struct nf_nat_l3proto *l3proto,
 			}
 		} else {
 			min = 1024;
-			range_size = 65535 - 1024 + 1;
+			range_size = 65535 - min + 1;
 		}
 	} else {
 		min = ntohs(range->min_proto.all);
Signature · 1 line
1.7.1