summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorShaohua Li <shli@fb.com>2017-01-11 13:38:52 -0800
committerShaohua Li <shli@fb.com>2017-01-24 11:20:13 -0800
commitd46d29f072accb069cb42b5fbebcc77d9094a785 (patch)
tree03e73cdb9804339ff011ddfe53c0f5b590c93b16 /drivers
parent557ed56cc75e0a33c15ba438734a280bac23bd32 (diff)
md/raid5-cache: delete meaningless code
sector_t is unsigned long, it's never < 0 Reported-by: Julia Lawall <julia.lawall@lip6.fr> Signed-off-by: Shaohua Li <shli@fb.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/md/raid5-cache.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/md/raid5-cache.c b/drivers/md/raid5-cache.c
index 0e8ed2c327b0..e0d6dd1835d0 100644
--- a/drivers/md/raid5-cache.c
+++ b/drivers/md/raid5-cache.c
@@ -1393,8 +1393,6 @@ static void r5l_do_reclaim(struct r5l_log *log)
next_checkpoint = r5c_calculate_new_cp(conf);
spin_unlock_irq(&log->io_list_lock);
- BUG_ON(reclaimable < 0);
-
if (reclaimable == 0 || !write_super)
return;