瀏覽代碼

[PATCH] dm: remove unnecessary typecast

Signed-off-by: Kevin Corry <kevcorry@us.ibm.com>
Cc: Alasdair G Kergon <agk@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Kevin Corry 19 年之前
父節點
當前提交
a22c96c737
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/md/dm-stripe.c

+ 1 - 1
drivers/md/dm-stripe.c

@@ -103,7 +103,7 @@ static int stripe_ctr(struct dm_target *ti, unsigned int argc, char **argv)
 		return -EINVAL;
 		return -EINVAL;
 	}
 	}
 
 
-	if (((uint32_t)ti->len) & (chunk_size - 1)) {
+	if (ti->len & (chunk_size - 1)) {
 		ti->error = "dm-stripe: Target length not divisible by "
 		ti->error = "dm-stripe: Target length not divisible by "
 		    "chunk size";
 		    "chunk size";
 		return -EINVAL;
 		return -EINVAL;