From: Aya Mahfouz Date: Thu, 2 Apr 2015 17:59:15 +0000 (+0200) Subject: staging: lustre: include: replace OBD_CHECK_DEV by obd_check_dev X-Git-Tag: omap-for-v4.2/o2_dc~155^2~138^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4ca1b8fbe609b7c52aeaa78a5f4678efcc9b8d73;p=pandora-kernel.git 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 Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed