Browse Source

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 <eric.engestrom@imgtec.com>
Signed-off-by: Shaohua Li <shli@fb.com>
Eric Engestrom 9 years ago
parent
commit
c97e0602bc
1 changed files with 1 additions and 2 deletions
  1. 1 2
      drivers/md/bitmap.c

+ 1 - 2
drivers/md/bitmap.c

@@ -510,8 +510,7 @@ static int bitmap_new_disk_sb(struct bitmap *bitmap)
 	sb->chunksize = cpu_to_le32(chunksize);
 	sb->chunksize = cpu_to_le32(chunksize);
 
 
 	daemon_sleep = bitmap->mddev->bitmap_info.daemon_sleep;
 	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");
 		printk(KERN_INFO "Choosing daemon_sleep default (5 sec)\n");
 		daemon_sleep = 5 * HZ;
 		daemon_sleep = 5 * HZ;
 	}
 	}