diff options
author | James Simmons <jsimmons@infradead.org> | 2016-11-17 14:35:50 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-11-18 08:47:32 +0100 |
commit | 6fc68ea5f38fb50ad22ae34777e0ab6111e3e749 (patch) | |
tree | 67c85de1d6eff21a2dd95a6ec745e03797282e9f /drivers/staging/lustre/lnet/libcfs/workitem.c | |
parent | staging: lustre: libcfs: remove != 0 testing (diff) | |
download | linux-dev-6fc68ea5f38fb50ad22ae34777e0ab6111e3e749.tar.xz linux-dev-6fc68ea5f38fb50ad22ae34777e0ab6111e3e749.zip |
staging: lustre: libcfs: remove == 0 testing
Testing == 0 is not kernel style so remove this
type of testing from libcfs.
Signed-off-by: James Simmons <jsimmons@infradead.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/lustre/lnet/libcfs/workitem.c')
-rw-r--r-- | drivers/staging/lustre/lnet/libcfs/workitem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/lustre/lnet/libcfs/workitem.c b/drivers/staging/lustre/lnet/libcfs/workitem.c index b9eda179091f..f5f1e9e7b5e3 100644 --- a/drivers/staging/lustre/lnet/libcfs/workitem.c +++ b/drivers/staging/lustre/lnet/libcfs/workitem.c @@ -325,7 +325,7 @@ cfs_wi_sched_destroy(struct cfs_wi_sched *sched) list_del(&sched->ws_list); spin_unlock(&cfs_wi_data.wi_glock); - LASSERT(sched->ws_nscheduled == 0); + LASSERT(!sched->ws_nscheduled); LIBCFS_FREE(sched, sizeof(*sched)); } |