Skip to content

Commit

Permalink
blk-iocost: Remove unnecessary (void*) conversions
Browse files Browse the repository at this point in the history
The key pointer is void and hence does not need an explicit cast.

Signed-off-by: Li zeming <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>
  • Loading branch information
Li zeming authored and axboe committed Sep 20, 2022
1 parent 118f366 commit a7609c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion block/blk-iocost.c
Original file line number Diff line number Diff line change
Expand Up @@ -1430,7 +1430,7 @@ static int iocg_wake_fn(struct wait_queue_entry *wq_entry, unsigned mode,
int flags, void *key)
{
struct iocg_wait *wait = container_of(wq_entry, struct iocg_wait, wait);
struct iocg_wake_ctx *ctx = (struct iocg_wake_ctx *)key;
struct iocg_wake_ctx *ctx = key;
u64 cost = abs_cost_to_cost(wait->abs_cost, ctx->hw_inuse);

ctx->vbudget -= cost;
Expand Down

0 comments on commit a7609c6

Please sign in to comment.