Browse Source

staging: lustre: libcfs: remove explicit test of NULL variable

Remove != NULL which is not needed to test key existence.

Signed-off-by: James Simmons <jsimmons@infradead.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
James Simmons 8 years ago
parent
commit
dace630546
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/staging/lustre/lnet/libcfs/libcfs_lock.c

+ 1 - 1
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]);
 	}