From: Kevin Corry Date: Mon, 27 Mar 2006 09:18:01 +0000 (-0800) Subject: [PATCH] dm: remove unnecessary typecast X-Git-Tag: v2.6.17-rc1~298 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=a22c96c737a9cefbe8d6e991c0032ad6db825a67;p=~shefty%2Frdma-dev.git [PATCH] dm: remove unnecessary typecast Signed-off-by: Kevin Corry Cc: Alasdair G Kergon Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/md/dm-stripe.c b/drivers/md/dm-stripe.c index 204f796ee9e..08328a8f5a3 100644 --- a/drivers/md/dm-stripe.c +++ b/drivers/md/dm-stripe.c @@ -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;