Skip to content

Commit 67d0a91

Browse files
mklntfmartinkpetersen
authored andcommitted
scsi: ufs: core: Remove unneeded casts from void *
The end_io_data member of the "struct request" type has type "void *", so no cast is necessary. Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Bart Van Assche <[email protected]> Signed-off-by: Markus Fuchs <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
1 parent 638eec0 commit 67d0a91

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/ufs/core/ufshpb.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -615,14 +615,14 @@ static void ufshpb_activate_subregion(struct ufshpb_lu *hpb,
615615

616616
static void ufshpb_umap_req_compl_fn(struct request *req, blk_status_t error)
617617
{
618-
struct ufshpb_req *umap_req = (struct ufshpb_req *)req->end_io_data;
618+
struct ufshpb_req *umap_req = req->end_io_data;
619619

620620
ufshpb_put_req(umap_req->hpb, umap_req);
621621
}
622622

623623
static void ufshpb_map_req_compl_fn(struct request *req, blk_status_t error)
624624
{
625-
struct ufshpb_req *map_req = (struct ufshpb_req *) req->end_io_data;
625+
struct ufshpb_req *map_req = req->end_io_data;
626626
struct ufshpb_lu *hpb = map_req->hpb;
627627
struct ufshpb_subregion *srgn;
628628
unsigned long flags;

0 commit comments

Comments
 (0)