Commit dace6305 authored by James Simmons's avatar James Simmons Committed by Greg Kroah-Hartman

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

Remove != NULL which is not needed to test key existence.
Signed-off-by: default avatarJames Simmons <jsimmons@infradead.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent e5ba9657
...@@ -73,7 +73,7 @@ cfs_percpt_lock_create(struct cfs_cpt_table *cptab, ...@@ -73,7 +73,7 @@ cfs_percpt_lock_create(struct cfs_cpt_table *cptab,
cfs_percpt_for_each(lock, i, pcl->pcl_locks) { cfs_percpt_for_each(lock, i, pcl->pcl_locks) {
spin_lock_init(lock); spin_lock_init(lock);
if (keys != NULL) if (keys)
lockdep_set_class(lock, &keys[i]); lockdep_set_class(lock, &keys[i]);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment