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>
This commit is contained in:
James Simmons 2016-11-17 14:35:42 -05:00 committed by Greg Kroah-Hartman
parent e5ba965732
commit dace630546
1 changed files with 1 additions and 1 deletions

View File

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