summaryrefslogtreecommitdiff
path: root/block/blk-iocost.c
diff options
context:
space:
mode:
authorLi zeming <zeming@nfschina.com>2022-09-19 09:28:25 +0800
committerJens Axboe <axboe@kernel.dk>2022-09-20 08:28:30 -0600
commita7609c68f7a117a77b3049c2353f555854be69e9 (patch)
tree2a489a779bd31a4674e435f9575d8c052937a693 /block/blk-iocost.c
parent118f3663fbc658e9ad6165e129076981c7b685c5 (diff)
downloadlwn-a7609c68f7a117a77b3049c2353f555854be69e9.tar.gz
lwn-a7609c68f7a117a77b3049c2353f555854be69e9.zip
blk-iocost: Remove unnecessary (void*) conversions
The key pointer is void and hence does not need an explicit cast. Signed-off-by: Li zeming <zeming@nfschina.com> Link: https://lore.kernel.org/r/20220919012825.2936-1-zeming@nfschina.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk-iocost.c')
-rw-r--r--block/blk-iocost.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/block/blk-iocost.c b/block/blk-iocost.c
index 7936e5f5821c..b473efd89b86 100644
--- a/block/blk-iocost.c
+++ b/block/blk-iocost.c
@@ -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;