]> err.no Git - linux-2.6/blobdiff - drivers/md/dm-stripe.c
[PATCH] W1: cleanups
[linux-2.6] / 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;