staging: lustre: Use min3 macro
authorGargi Sharma <gs051095@gmail.com>
Sat, 11 Mar 2017 20:41:37 +0000 (02:11 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 12 Mar 2017 13:46:34 +0000 (14:46 +0100)
commit4d567cef1b573b5b976d55b9106a59b9fe85e532
tree597aca82cac2d6712456898b5611121a24b35573
parent2437a9e023fe1df77c053b222762357bb73212e8
staging: lustre: Use min3 macro

Replace comparsions between three expressions using
two min macros with min3 macro. Done using Coccinelle
Script:

@@
expression e1;
expression e2;
expression e3;
@@
(
- min(min(e1, e2), e3)
+ min3(e1, e2, e3)
|
- min(e1, min(e2, e3))
+ min3(e1, e2, e3)
)

Signed-off-by: Gargi Sharma <gs051095@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lnet/klnds/o2iblnd/o2iblnd_cb.c