Merge branch 'jc/cocci-preincr' into maint
Code cleanup. * jc/cocci-preincr: fsck: s/++i > 1/i++/ cocci: simplify "if (++u > 1)" to "if (u++)"
This commit is contained in:
commit
196afc439c
5
contrib/coccinelle/preincr.cocci
Normal file
5
contrib/coccinelle/preincr.cocci
Normal file
@ -0,0 +1,5 @@
|
||||
@ preincrement @
|
||||
identifier i;
|
||||
@@
|
||||
- ++i > 1
|
||||
+ i++
|
Loading…
Reference in New Issue
Block a user