]> git.karo-electronics.de Git - karo-tx-linux.git/commit
staging: lustre: Move assignments out of function calls.
authorElise Lennion <elise.lennion@gmail.com>
Sun, 23 Oct 2016 00:30:44 +0000 (22:30 -0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 25 Oct 2016 07:52:02 +0000 (09:52 +0200)
commita6ec5bb812fdaab5e2b7e73d4527c7cc477448a2
tree1f0027c15fdd3cda9317c4ce3ed97c2558b16232
parentf99e73a5e3ff556bc69e5e592fee18d4cb7600dd
staging: lustre: Move assignments out of function calls.

Assignments inside of function calls confuse the reader and should be
avoided, so it was moved out before the call.

Found with Coccinelle, semantic patch:
@@
identifier f;
expression e1, e2;
assignment operator a;
@@

+ e1 a e2;
f(...,
- (e1 a e2)
+ e1
 ,...);

Signed-off-by: Elise Lennion <elise.lennion@gmail.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/llite/vvp_io.c