Thread (11 messages) flat view 11 messages, 4 authors, 2018-06-20

Re: [PATCH net 1/5] net sched actions: fix coding style in pedit action

From: Roman Mashak <hidden>
Date: 2018-06-20 13:25:39

Davide Caratti [off-list ref] writes:
On Tue, 2018-06-19 at 12:56 -0400, Roman Mashak wrote:
quoted
Fix coding style issues in tc pedit action detected by the
checkpatch script.

Signed-off-by: Roman Mashak <redacted>
...
quoted
---
@@ -316,16 +318,15 @@ static int tcf_pedit(struct sk_buff *skb, const struct tc_action *a,
 						hoffset + tkey->at);
 					goto bad;
 				}
-				d = skb_header_pointer(skb, hoffset + tkey->at, 1,
-						       &_d);
+				d = skb_header_pointer(skb, hoffset + tkey->at,
+						       1, &_d);
				if (!d)
 					goto bad;
 				offset += (*d & tkey->offmask) >> tkey->shift;
 			}
hello Roman,

nit: while we are here, what about changing the declaration of _d and *d
to u8, so that the bitwise operation is done on unsigned?
Yes makes sense, I will send v2 in net-next once opened. Thanks Davide.
BTW: the patch (and the series) looks ok, but I guess it will better
target net-next when the branch reopens
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help