staging: lustre: include: replace OBD_CHECK_DEV by obd_check_dev
authorAya Mahfouz <mahfouz.saif.elyazal@gmail.com>
Thu, 2 Apr 2015 17:59:15 +0000 (19:59 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 3 Apr 2015 09:18:13 +0000 (11:18 +0200)
commit4ca1b8fbe609b7c52aeaa78a5f4678efcc9b8d73
tree47c1be0b85d865bc37f2210a5640d5cce11459ad
parenta18dd4702c923167e98acbb0c9d94463ce19546f
staging: lustre: include: replace OBD_CHECK_DEV by obd_check_dev

Static inline functions are preferred over macros. Hence, the function
obd_check_dev was introduced. obd_check_dev replaces the macro
OBD_CHECK_DEV. All functions that call obd_check_dev store the return
values and return them if they represent an error code.

Some of the changes were carried out manually while others were done
using coccinelle.

Signed-off-by: Aya Mahfouz <mahfouz.saif.elyazal@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/include/obd_class.h