scsi: ufs: core: Remove unneeded casts from void *
authorMarkus Fuchs <mklntf@gmail.com>
Wed, 28 Sep 2022 22:22:42 +0000 (00:22 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Sat, 1 Oct 2022 09:58:10 +0000 (05:58 -0400)
The end_io_data member of the "struct request" type has type "void *", so
no cast is necessary.

Link: https://lore.kernel.org/r/20220928222241.131334-1-mklntf@gmail.com
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Markus Fuchs <mklntf@gmail.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/ufs/core/ufshpb.c

index a1a7a1175a5a61da3f35d39d93fc196fc896529a..0ce5063bedc57a59e145278fbcb6b259e5f39a74 100644 (file)
@@ -615,14 +615,14 @@ static void ufshpb_activate_subregion(struct ufshpb_lu *hpb,
 
 static void ufshpb_umap_req_compl_fn(struct request *req, blk_status_t error)
 {
-       struct ufshpb_req *umap_req = (struct ufshpb_req *)req->end_io_data;
+       struct ufshpb_req *umap_req = req->end_io_data;
 
        ufshpb_put_req(umap_req->hpb, umap_req);
 }
 
 static void ufshpb_map_req_compl_fn(struct request *req, blk_status_t error)
 {
-       struct ufshpb_req *map_req = (struct ufshpb_req *) req->end_io_data;
+       struct ufshpb_req *map_req = req->end_io_data;
        struct ufshpb_lu *hpb = map_req->hpb;
        struct ufshpb_subregion *srgn;
        unsigned long flags;