md/bitmap: remove redundant check
authorEric Engestrom <eric.engestrom@imgtec.com>
Mon, 7 Mar 2016 12:01:05 +0000 (12:01 +0000)
committerShaohua Li <shli@fb.com>
Mon, 7 Mar 2016 17:30:16 +0000 (09:30 -0800)
daemon_sleep is an unsigned, so testing if it's 0 or less than 1 does
the same thing.

Signed-off-by: Eric Engestrom <eric.engestrom@imgtec.com>
Signed-off-by: Shaohua Li <shli@fb.com>
drivers/md/bitmap.c

index d80cce499a56e595d1f2679170124ca5fc620315..bbe7b64f3e3141d11ef3f3758737d6244a7340ed 100644 (file)
@@ -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;
        }
This page took 0.028024 seconds and 5 git commands to generate.