diff options
author | Shaohua Li <shli@fb.com> | 2017-01-11 13:38:52 -0800 |
---|---|---|
committer | Shaohua Li <shli@fb.com> | 2017-01-24 11:20:13 -0800 |
commit | d46d29f072accb069cb42b5fbebcc77d9094a785 (patch) | |
tree | 03e73cdb9804339ff011ddfe53c0f5b590c93b16 /drivers/md | |
parent | 557ed56cc75e0a33c15ba438734a280bac23bd32 (diff) | |
download | linux-d46d29f072accb069cb42b5fbebcc77d9094a785.tar.bz2 |
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')
-rw-r--r-- | drivers/md/raid5-cache.c | 2 |
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; |