scsi: ufs: Remove unneeded casts from void *
Subsystems (3)
PATCH 1/1 scsi: ufs: Remove unneeded casts from void *
The end_io_data member of the "struct request" type has type "void *", so no cast is necessary.
Signed-off-by Markus Fuchs <[email protected]>
--- drivers/ufs/core/ufshpb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/ufs/core/ufshpb.c +2 -2
@@ -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;
Signature · 1 line
2.37.3
Quoted 2 lines · Markus Fuchs
The
end_io_datamember of the "struct request" type has type "void *", so no cast is necessary.
Reviewed-by Bart Van Assche <[email protected]>
Martin K. Petersen
AppliedMarkus,
Quoted 2 lines
The
end_io_datamember of the "struct request" type has type "void *", so no cast is necessary.
Applied to 6.1/scsi-staging, thanks!
Signature · 1 line
Martin K. Petersen Oracle Linux Engineering