Skip to content

Commit

Permalink
[PATCH] dm: remove unnecessary typecast
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Kevin Corry authored and Linus Torvalds committed Mar 27, 2006
1 parent b4cf1b7 commit a22c96c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/md/dm-stripe.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit a22c96c

Please sign in to comment.