From: James Simmons Date: Thu, 17 Nov 2016 19:35:42 +0000 (-0500) Subject: staging: lustre: libcfs: remove explicit test of NULL variable X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=dace63054678e88fd8e6119e00f87905006c4783;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git staging: lustre: libcfs: remove explicit test of NULL variable Remove != NULL which is not needed to test key existence. Signed-off-by: James Simmons Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/lustre/lnet/libcfs/libcfs_lock.c b/drivers/staging/lustre/lnet/libcfs/libcfs_lock.c index 83543f928279..1deea765758f 100644 --- a/drivers/staging/lustre/lnet/libcfs/libcfs_lock.c +++ b/drivers/staging/lustre/lnet/libcfs/libcfs_lock.c @@ -73,7 +73,7 @@ cfs_percpt_lock_create(struct cfs_cpt_table *cptab, cfs_percpt_for_each(lock, i, pcl->pcl_locks) { spin_lock_init(lock); - if (keys != NULL) + if (keys) lockdep_set_class(lock, &keys[i]); }