[PATCH] dm: remove unnecessary typecast
authorKevin Corry <kevcorry@us.ibm.com>
Mon, 27 Mar 2006 09:18:01 +0000 (01:18 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 27 Mar 2006 16:45:00 +0000 (08:45 -0800)
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>
drivers/md/dm-stripe.c

index 204f796ee9e32d36797079a595705c54f2c19c6f..08328a8f5a3cab75d1881e7bd922fa300b07187f 100644 (file)
@@ -103,7 +103,7 @@ static int stripe_ctr(struct dm_target *ti, unsigned int argc, char **argv)
                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 "
                    "chunk size";
                return -EINVAL;