staging: lustre: llite: return from ll_adjust_lum() if lump is NULL
authorBobi Jam <bobijam.xu@intel.com>
Mon, 16 Apr 2018 04:14:59 +0000 (00:14 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 23 Apr 2018 12:57:40 +0000 (14:57 +0200)
commitd095bc9f57cc4a31febfb2e2b8f3811283f77988
treea385841da0e3c024c7b429e177fdf8014967bec1
parenta65e50c0ff01f5ec763e0c8b88d2952b875536ce
staging: lustre: llite: return from ll_adjust_lum() if lump is NULL

No need to check several times if lump is NULL. Just test once and
return 0 if NULL.

Signed-off-by: Bobi Jam <bobijam.xu@intel.com>
Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-9484
Reviewed-on: https://review.whamcloud.com/27126
Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com>
Reviewed-by: Niu Yawei <yawei.niu@intel.com>
Reviewed-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Signed-off-by: James Simmons <jsimmons@infradead.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/llite/xattr.c