[prev in list] [next in list] [prev in thread] [next in thread] 

List:       git-commits-head
Subject:    md/raid5-cache: delete meaningless code
From:       "Linux Kernel Mailing List" <linux-kernel () vger ! kernel ! org>
Date:       2017-01-28 19:54:38
Message-ID: 20170128195438.5AB19660FE6 () gitolite ! kernel ! org
[Download RAW message or body]

Web:        https://git.kernel.org/torvalds/c/d46d29f072accb069cb42b5fbebcc77d9094a785
Commit:     d46d29f072accb069cb42b5fbebcc77d9094a785
Parent:     557ed56cc75e0a33c15ba438734a280bac23bd32
Refname:    refs/heads/master
Author:     Shaohua Li <shli@fb.com>
AuthorDate: Wed Jan 11 13:38:52 2017 -0800
Committer:  Shaohua Li <shli@fb.com>
CommitDate: Tue Jan 24 11:20:13 2017 -0800

    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>
---
 drivers/md/raid5-cache.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/md/raid5-cache.c b/drivers/md/raid5-cache.c
index 0e8ed2c..e0d6dd1 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;
 
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic