]> git.baikalelectronics.ru Git - kernel.git/commit
staging: lustre: checking for NULL instead of IS_ERR
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 18 Mar 2016 05:42:47 +0000 (08:42 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 23 Mar 2016 02:22:13 +0000 (22:22 -0400)
commit953f4c5b26067ecd11c3256021abf6e2cbe216d0
tree84b500dde267d617e892cc3fa30dd0831779312f
parent2e9c0c970eef3f47738c2d90ccec1d67301c36d0
staging: lustre: checking for NULL instead of IS_ERR

lustre_cfg_new() returns error pointers on error, it never returns NULL.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/mgc/mgc_request.c