diff options
author | Julia Lawall <Julia.Lawall@lip6.fr> | 2017-12-27 09:51:38 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-01-02 13:49:53 -0500 |
commit | e0b10844d9e617a1a5ce2ddf73d38aaa0a47a2a4 (patch) | |
tree | 39b87498e79fb3b860527800383491621c493ead /net/openvswitch/conntrack.c | |
parent | 62262ffd95fba33c2b0dfcbf3ef3a254101120c7 (diff) |
openvswitch: drop unneeded newline
OVS_NLERR prints a newline at the end of the message string, so the
message string does not need to include a newline explicitly. Done
using Coccinelle.
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/openvswitch/conntrack.c')
-rw-r--r-- | net/openvswitch/conntrack.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/openvswitch/conntrack.c b/net/openvswitch/conntrack.c index b27c5c6d9cab..62f36cc938ca 100644 --- a/net/openvswitch/conntrack.c +++ b/net/openvswitch/conntrack.c | |||
@@ -1266,14 +1266,14 @@ static int parse_nat(const struct nlattr *attr, | |||
1266 | /* Do not allow flags if no type is given. */ | 1266 | /* Do not allow flags if no type is given. */ |
1267 | if (info->range.flags) { | 1267 | if (info->range.flags) { |
1268 | OVS_NLERR(log, | 1268 | OVS_NLERR(log, |
1269 | "NAT flags may be given only when NAT range (SRC or DST) is also specified.\n" | 1269 | "NAT flags may be given only when NAT range (SRC or DST) is also specified." |
1270 | ); | 1270 | ); |
1271 | return -EINVAL; | 1271 | return -EINVAL; |
1272 | } | 1272 | } |
1273 | info->nat = OVS_CT_NAT; /* NAT existing connections. */ | 1273 | info->nat = OVS_CT_NAT; /* NAT existing connections. */ |
1274 | } else if (!info->commit) { | 1274 | } else if (!info->commit) { |
1275 | OVS_NLERR(log, | 1275 | OVS_NLERR(log, |
1276 | "NAT attributes may be specified only when CT COMMIT flag is also specified.\n" | 1276 | "NAT attributes may be specified only when CT COMMIT flag is also specified." |
1277 | ); | 1277 | ); |
1278 | return -EINVAL; | 1278 | return -EINVAL; |
1279 | } | 1279 | } |