Commit a22c96c737a9cefbe8d6e991c0032ad6db825a67

Authored by Kevin Corry
Committed by Linus Torvalds
1 parent b4cf1b72ee

[PATCH] dm: remove unnecessary typecast

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>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

drivers/md/dm-stripe.c
... ... @@ -103,7 +103,7 @@
103 103 return -EINVAL;
104 104 }
105 105  
106   - if (((uint32_t)ti->len) & (chunk_size - 1)) {
  106 + if (ti->len & (chunk_size - 1)) {
107 107 ti->error = "dm-stripe: Target length not divisible by "
108 108 "chunk size";
109 109 return -EINVAL;