From: Shaohua Li Date: Wed, 11 Jan 2017 21:38:52 +0000 (-0800) Subject: md/raid5-cache: delete meaningless code X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d46d29f072accb069cb42b5fbebcc77d9094a785;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git md/raid5-cache: delete meaningless code sector_t is unsigned long, it's never < 0 Reported-by: Julia Lawall Signed-off-by: Shaohua Li --- 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;