mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-06 08:46:46 +00:00
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>
This commit is contained in:
parent
62262ffd95
commit
e0b10844d9
1 changed files with 2 additions and 2 deletions
|
@ -1266,14 +1266,14 @@ static int parse_nat(const struct nlattr *attr,
|
||||||
/* Do not allow flags if no type is given. */
|
/* Do not allow flags if no type is given. */
|
||||||
if (info->range.flags) {
|
if (info->range.flags) {
|
||||||
OVS_NLERR(log,
|
OVS_NLERR(log,
|
||||||
"NAT flags may be given only when NAT range (SRC or DST) is also specified.\n"
|
"NAT flags may be given only when NAT range (SRC or DST) is also specified."
|
||||||
);
|
);
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
info->nat = OVS_CT_NAT; /* NAT existing connections. */
|
info->nat = OVS_CT_NAT; /* NAT existing connections. */
|
||||||
} else if (!info->commit) {
|
} else if (!info->commit) {
|
||||||
OVS_NLERR(log,
|
OVS_NLERR(log,
|
||||||
"NAT attributes may be specified only when CT COMMIT flag is also specified.\n"
|
"NAT attributes may be specified only when CT COMMIT flag is also specified."
|
||||||
);
|
);
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue