[PATCH] dm: remove unnecessary typecast

Signed-off-by: Kevin Corry <[email protected]>
Cc: Alasdair G Kergon <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
Kevin Corry 2006-03-27 01:18:01 -08:00 • committed by Linus Torvalds
commit a22c96c737

View 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;