net: ipv6: Removed unnecessary parenthesis
Subsystems (3)
PATCH 1/1 net: ipv6: Removed unnecessary parenthesis
Removed parentheses on the right hand side of assignment, as they are not required. The following coccinelle script was used to fix this issue:
@@
local idexpression id;
expression e;
@@
id =
-(
e
-)
--- net/ipv6/netfilter/nf_conntrack_reasm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
net/ipv6/netfilter/nf_conntrack_reasm.c +2 -2
@@ -387,9 +387,9 @@ nf_ct_frag6_reasm(struct frag_queue *fq, struct sk_buff *prev, struct net_devicreturn false;/* Unfragmented part is taken from the first segment. */ - payload_len = ((head->data -skb_network_header (head)) - + payload_len = (head->data -skb_network_header (head)) -sizeof (struct ipv6hdr ) + fq->q.len - -sizeof (struct frag_hdr )); +sizeof (struct frag_hdr );if (payload_len >IPV6_MAXPLEN ) {net_dbg_ratelimited ("nf_ct_frag6_reasm: payload len = %d\n" , payload_len);
Signature · 1 line
2.11.0
Pablo Neira Ayuso
maintainerQuoted 9 lines · Arushi Singhal
Removed parentheses on the right hand side of assignment, as they are not required. The following coccinelle script was used to fix this issue:
@@
local idexpression id;
expression e;
@@
Quoted 4 lines
id =
-(
e
-)
You sent me two patches for this:
http://patchwork.ozlabs.org/patch/744661/
http://patchwork.ozlabs.org/patch/744702/
The follow up one does not indicate v2, so I'm confused. I'm not sure this is a resend or just a new version.
Another question that is not clear from your description is if you had a look at the entire tree to find more spots like this, or you just found this one and update it.
Ideally, it would be better to fix everything in one go, so we don't have to deal with oneliner patches that just fix one single spot.
Thanks!