@@ -402,7 +402,7 @@ static int __multipath_map(struct dm_target *ti, struct request *clone,
402402 union map_info * map_context ,
403403 struct request * rq , struct request * * __clone )
404404{
405- struct multipath * m = ( struct multipath * ) ti -> private ;
405+ struct multipath * m = ti -> private ;
406406 int r = DM_MAPIO_REQUEUE ;
407407 size_t nr_bytes = clone ? blk_rq_bytes (clone ) : blk_rq_bytes (rq );
408408 struct pgpath * pgpath ;
@@ -1350,7 +1350,7 @@ static int multipath_end_io(struct dm_target *ti, struct request *clone,
13501350 */
13511351static void multipath_presuspend (struct dm_target * ti )
13521352{
1353- struct multipath * m = ( struct multipath * ) ti -> private ;
1353+ struct multipath * m = ti -> private ;
13541354
13551355 queue_if_no_path (m , 0 , 1 );
13561356}
@@ -1369,7 +1369,7 @@ static void multipath_postsuspend(struct dm_target *ti)
13691369 */
13701370static void multipath_resume (struct dm_target * ti )
13711371{
1372- struct multipath * m = ( struct multipath * ) ti -> private ;
1372+ struct multipath * m = ti -> private ;
13731373 unsigned long flags ;
13741374
13751375 spin_lock_irqsave (& m -> lock , flags );
@@ -1398,7 +1398,7 @@ static void multipath_status(struct dm_target *ti, status_type_t type,
13981398{
13991399 int sz = 0 ;
14001400 unsigned long flags ;
1401- struct multipath * m = ( struct multipath * ) ti -> private ;
1401+ struct multipath * m = ti -> private ;
14021402 struct priority_group * pg ;
14031403 struct pgpath * p ;
14041404 unsigned pg_num ;
@@ -1506,7 +1506,7 @@ static int multipath_message(struct dm_target *ti, unsigned argc, char **argv)
15061506{
15071507 int r = - EINVAL ;
15081508 struct dm_dev * dev ;
1509- struct multipath * m = ( struct multipath * ) ti -> private ;
1509+ struct multipath * m = ti -> private ;
15101510 action_fn action ;
15111511
15121512 mutex_lock (& m -> work_mutex );
0 commit comments