summaryrefslogtreecommitdiffstats
path: root/drivers/md/bitmap.c
diff options
context:
space:
mode:
authorEric Engestrom <eric.engestrom@imgtec.com>2016-03-07 12:01:05 +0000
committerShaohua Li <shli@fb.com>2016-03-07 09:30:16 -0800
commitc97e0602bcfeaabf303b125e07ed7ba35c656495 (patch)
treec259ea3719a1f6a491ff751117971ace18279471 /drivers/md/bitmap.c
parent70d9798b95562abac005d4ba71d28820f9a201eb (diff)
downloadlinux-stable-c97e0602bcfeaabf303b125e07ed7ba35c656495.tar.gz
linux-stable-c97e0602bcfeaabf303b125e07ed7ba35c656495.tar.bz2
linux-stable-c97e0602bcfeaabf303b125e07ed7ba35c656495.zip
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>
Diffstat (limited to 'drivers/md/bitmap.c')
-rw-r--r--drivers/md/bitmap.c3
1 files changed, 1 insertions, 2 deletions
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;
}