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>
This commit is contained in:
Dan Carpenter 2016-03-18 08:42:47 +03:00 • committed by Greg Kroah-Hartman
commit 3092c34a4a