* [PATCH] net: netfilter: fix coding style
@ 2017-12-05 7:34 Lin Zhang
0 siblings, 0 replies; only message in thread
From: Lin Zhang @ 2017-12-05 7:34 UTC (permalink / raw)
To: pablo, kadlec, fw, davem; +Cc: netfilter-devel, coreteam, netdev, Lin Zhang
I think use variable 'min' instead of number '1024' is better.
Signed-off-by: Lin Zhang <xiaolou4617@gmail.com>
---
net/netfilter/nf_nat_proto_common.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/net/netfilter/nf_nat_proto_common.c b/net/netfilter/nf_nat_proto_common.c
index fbce552..e87e683 100644
--- a/net/netfilter/nf_nat_proto_common.c
+++ b/net/netfilter/nf_nat_proto_common.c
@@ -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);
--
1.7.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2017-12-05 7:34 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-05 7:34 [PATCH] net: netfilter: fix coding style Lin Zhang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).