From: Kevin Corry Date: Mon, 27 Mar 2006 09:18:01 +0000 (-0800) Subject: [PATCH] dm: remove unnecessary typecast X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a22c96c737a9cefbe8d6e991c0032ad6db825a67;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.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 204f796ee9e3..08328a8f5a3c 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;