summaryrefslogtreecommitdiffstats
path: root/drivers/staging/erofs/unzip_pagevec.h
diff options
context:
space:
mode:
authorGao Xiang <gaoxiang25@huawei.com>2018-12-11 15:17:49 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-12-12 10:56:34 +0100
commit70b17991d89554cdd16f3e4fb0179bcc03c808d9 (patch)
tree74e70a8296c040b0d919be9a8332fe7b51f9d6d2 /drivers/staging/erofs/unzip_pagevec.h
parentd3086550faea48d87343b34aca15be853ea79f96 (diff)
staging: erofs: unzip_{pagevec.h,vle.c}: rectify BUG_ONs
remove all redundant BUG_ONs, and turn the rest useful usages to DBG_BUGONs. Signed-off-by: Gao Xiang <gaoxiang25@huawei.com> Reviewed-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/erofs/unzip_pagevec.h')
-rw-r--r--drivers/staging/erofs/unzip_pagevec.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/erofs/unzip_pagevec.h b/drivers/staging/erofs/unzip_pagevec.h
index 0956615b86f7..23856ba2742d 100644
--- a/drivers/staging/erofs/unzip_pagevec.h
+++ b/drivers/staging/erofs/unzip_pagevec.h
@@ -150,7 +150,7 @@ z_erofs_pagevec_ctor_dequeue(struct z_erofs_pagevec_ctor *ctor,
erofs_vtptr_t t;
if (unlikely(ctor->index >= ctor->nr)) {
- BUG_ON(ctor->next == NULL);
+ DBG_BUGON(!ctor->next);
z_erofs_pagevec_ctor_pagedown(ctor, true);
}