mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-09 10:11:52 -04:00
drivers/staging/lustre: Nuke another unsigned >= 0 assert
Clean up another case of the compiler remininding the programmer they are an idiot: drivers/staging/lustre/lustre/ptlrpc/sec_bulk.c:308:34: warning: comparison of unsigned expression >= 0 is always true [-Wtype-limits] LASSERT(page_pools.epp_waitqlen >= 0); Just lose the assert, and save a page of compiler spew. Signed-off-by: Valdis Kletnieks <Valdis.Kletnieks@vt.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
bd6455de1a
commit
ad0d779938
@@ -304,7 +304,6 @@ static unsigned long enc_pools_cleanup(struct page ***pools, int npools)
|
||||
static inline void enc_pools_wakeup(void)
|
||||
{
|
||||
assert_spin_locked(&page_pools.epp_lock);
|
||||
LASSERT(page_pools.epp_waitqlen >= 0);
|
||||
|
||||
if (unlikely(page_pools.epp_waitqlen)) {
|
||||
LASSERT(waitqueue_active(&page_pools.epp_waitq));
|
||||
|
||||
Reference in New Issue
Block a user