Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d46d29f0 authored by Shaohua Li's avatar Shaohua Li
Browse files

md/raid5-cache: delete meaningless code



sector_t is unsigned long, it's never < 0

Reported-by: default avatarJulia Lawall <julia.lawall@lip6.fr>
Signed-off-by: default avatarShaohua Li <shli@fb.com>
parent 557ed56c
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -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;