From: Eric Engestrom Date: Mon, 7 Mar 2016 12:01:05 +0000 (+0000) Subject: md/bitmap: remove redundant check X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=c97e0602bcfeaabf303b125e07ed7ba35c656495;p=linux-beck.git md/bitmap: remove redundant check daemon_sleep is an unsigned, so testing if it's 0 or less than 1 does the same thing. Signed-off-by: Eric Engestrom Signed-off-by: Shaohua Li --- diff --git a/drivers/md/bitmap.c b/drivers/md/bitmap.c index d80cce499a56..bbe7b64f3e31 100644 --- a/drivers/md/bitmap.c +++ b/drivers/md/bitmap.c @@ -510,8 +510,7 @@ static int bitmap_new_disk_sb(struct bitmap *bitmap) sb->chunksize = cpu_to_le32(chunksize); daemon_sleep = bitmap->mddev->bitmap_info.daemon_sleep; - if (!daemon_sleep || - (daemon_sleep < 1) || (daemon_sleep > MAX_SCHEDULE_TIMEOUT)) { + if (!daemon_sleep || (daemon_sleep > MAX_SCHEDULE_TIMEOUT)) { printk(KERN_INFO "Choosing daemon_sleep default (5 sec)\n"); daemon_sleep = 5 * HZ; }