Skip to content

Commit

Permalink
net/tls: use semicolons rather than commas to separate statements
Browse files Browse the repository at this point in the history
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 <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
  • Loading branch information
JuliaLawall authored and kuba-moo committed Oct 14, 2020
1 parent 6159e96 commit 0403a2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/tls/tls_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -869,7 +869,7 @@ static int __init tls_register(void)

tls_sw_proto_ops = inet_stream_ops;
tls_sw_proto_ops.splice_read = tls_sw_splice_read;
tls_sw_proto_ops.sendpage_locked = tls_sw_sendpage_locked,
tls_sw_proto_ops.sendpage_locked = tls_sw_sendpage_locked;

tls_device_init();
tcp_register_ulp(&tcp_tls_ulp_ops);
Expand Down

0 comments on commit 0403a2b

Please sign in to comment.