Skip to content

Commit 6159e96

Browse files
JuliaLawallkuba-moo
authored andcommitted
net/ipv6: use semicolons rather than commas to separate statements
Replace commas with semicolons. Commas introduce unnecessary variability in the code structure and are hard to see. What is done is essentially described by the following Coccinelle semantic patch (http://coccinelle.lip6.fr/): // <smpl> @@ expression e1,e2; @@ e1 -, +; e2 ... when any // </smpl> Signed-off-by: Julia Lawall <Julia.Lawall@inria.fr> Acked-by: Paul Moore <paul@paul-moore.com> Link: https://lore.kernel.org/r/1602412498-32025-5-git-send-email-Julia.Lawall@inria.fr Signed-off-by: Jakub Kicinski <kuba@kernel.org>
1 parent 4479758 commit 6159e96

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎net/ipv6/calipso.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -761,7 +761,7 @@ static int calipso_genopt(unsigned char *buf, u32 start, u32 buf_len,
761761
calipso[1] = len - 2;
762762
*(__be32 *)(calipso + 2) = htonl(doi_def->doi);
763763
calipso[6] = (len - CALIPSO_HDR_LEN) / 4;
764-
calipso[7] = secattr->attr.mls.lvl,
764+
calipso[7] = secattr->attr.mls.lvl;
765765
crc = ~crc_ccitt(0xffff, calipso, len);
766766
calipso[8] = crc & 0xff;
767767
calipso[9] = (crc >> 8) & 0xff;

0 commit comments

Comments
 (0)