staging: lustre: obdclass: Use IS_ERR_OR_NULL
authorAmitoj Kaur Chawla <amitoj1606@gmail.com>
Sat, 13 Feb 2016 15:02:48 +0000 (20:32 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 15 Feb 2016 00:21:15 +0000 (16:21 -0800)
commitacdd1b8e681405beeb1f73333947fd5a42b871e9
tree2b7fe36ba384af006880803d7f4089d7605e84ce
parentd60fc1bbc26a16e79258d9b11baea83f49ff7776
staging: lustre: obdclass: Use IS_ERR_OR_NULL

Use macro IS_ERR_OR_NULL in place of tests for NULL and IS_ERR.

The Coccinelle semantic patch used to make the change is as follows:

//<smpl>
@@
expression e;
@@

- e == NULL || IS_ERR(e)
+ IS_ERR_OR_NULL(e)
//</smpl>

Signed-off-by: Amitoj Kaur Chawla <amitoj1606@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/obdclass/kernelcomm.c