]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
Staging: lustre: lov: Pull assignments out of function call
authorBhumika Goyal <bhumirks@gmail.com>
Tue, 16 Feb 2016 19:31:58 +0000 (01:01 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 20 Feb 2016 22:38:33 +0000 (14:38 -0800)
commit496baea013b6c9ef7eaf80facc50b4317e5cd39c
tree546ed3a8ac6bf937d612ad2ca245ddd72cccb195
parentf51e5a202e3cd6656f91fd61fda0bf206aa895e3
Staging: lustre: lov: Pull assignments out of function call

Assignments in function call arguments are undesirable. So pull such
assignments out before function call.
Made a coccinelle script to detect such cases:
@@
expression fn,b,d;
@@
* fn(...,d=b,...);

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/lov/lov_merge.c