remove unnecessary void* type casting
Signed-off-by: Zhou jie <[email protected]>
---
drivers/md/dm-linear.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/md/dm-linear.c b/drivers/md/dm-linear.c
index 76b486e4d2be..5637c480216a 100644
--- a/drivers/md/dm-linear.c
+++ b/drivers/md/dm-linear.c
@@ -71,7 +71,7 @@ static int linear_ctr(struct dm_target *ti, unsigned int argc, char **argv)
static void linear_dtr(struct dm_target *ti)
{
- struct linear_c *lc = (struct linear_c *) ti->private;
+ struct linear_c *lc = ti->private;
dm_put_device(ti, lc->dev);
kfree(lc);
@@ -119,7 +119,7 @@ static void linear_status(struct dm_target *ti, status_type_t type,
case STATUSTYPE_IMA:
DMEMIT_TARGET_NAME_VERSION(ti->type);
DMEMIT(",device_name=%s,start=%llu;", lc->dev->name,
- (unsigned long long)lc->start);
+ lc->start);
break;
}
}
--
2.18.2