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:
parent
e5ba965732
commit
dace630546
|
@ -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]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue