mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 19:08:57 +09:00
UPSTREAM: 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/20220928222241.131334-1-mklntf@gmail.com
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Change-Id: Ie26a005992dbe69e08f2db295ac881934cf51b9a
Signed-off-by: Markus Fuchs <mklntf@gmail.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
(cherry picked from commit 67d0a917fb)
Bug: 258234315
Signed-off-by: Bart Van Assche <bvanassche@google.com>
This commit is contained in:
committed by
Bart Van Assche
parent
7a770175ad
commit
96e26e259e
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user