Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a22c96c7 authored by Kevin Corry's avatar Kevin Corry Committed by Linus Torvalds
Browse files

[PATCH] dm: remove unnecessary typecast



Signed-off-by: default avatarKevin Corry <kevcorry@us.ibm.com>
Cc: Alasdair G Kergon <agk@redhat.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent b4cf1b72
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -103,7 +103,7 @@ static int stripe_ctr(struct dm_target *ti, unsigned int argc, char **argv)
		return -EINVAL;
		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 "
		ti->error = "dm-stripe: Target length not divisible by "
		    "chunk size";
		    "chunk size";
		return -EINVAL;
		return -EINVAL;