summaryrefslogtreecommitdiffstats
path: root/drivers/md/raid5-cache.c
diff options
context:
space:
mode:
authorShaohua Li <shli@fb.com>2017-01-11 22:38:52 +0100
committerShaohua Li <shli@fb.com>2017-01-24 20:20:13 +0100
commitd46d29f072accb069cb42b5fbebcc77d9094a785 (patch)
tree03e73cdb9804339ff011ddfe53c0f5b590c93b16 /drivers/md/raid5-cache.c
parentMerge tag 'sound-4.10-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/t... (diff)
downloadlinux-d46d29f072accb069cb42b5fbebcc77d9094a785.tar.xz
linux-d46d29f072accb069cb42b5fbebcc77d9094a785.zip
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/md/raid5-cache.c')
-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;