Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1953302rwb; Sun, 18 Sep 2022 18:32:04 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6exGrm3VfXL3RVAqfvm2iunFbv6ncngsNRyn6OTEggYiScSRF+tWn8FWtsLED3u2I4DTJi X-Received: by 2002:a17:906:5a5a:b0:770:86d0:fd8 with SMTP id my26-20020a1709065a5a00b0077086d00fd8mr11353305ejc.164.1663551124159; Sun, 18 Sep 2022 18:32:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663551124; cv=none; d=google.com; s=arc-20160816; b=skk+Rp1s/HNkWpWwYg5XOeAcC2bkOXaCYvXOadDAZeHooQ6tnRkxef5+ueZjH2LhCN GxNeE7GKmKRwGK8wF51swCvO4kM+0mJk44LCRAxje19Dw0fntwV1vsyDT8bPM8dsBXpc 2lvc+7R87joOmmZBfukpiIz7d503nZr5JYxsayngiIGySaZwEuMjduUmNlyFQZzvVh3J lPhckus88iCqZdNxBqFVqR20TkFzzqqOR65ZnoVc26ygQFFRZ1xV85ZPnTvFbf+snZpr A2iWn/gVRv8E6n+mnVf/Y62W+eSjDxM7cDcm6TOT8Zs54/6kCbO9ILsrI2B9NHnGQ549 bhBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=UZpgYQjtrycRCV3qla/612qBtaZJzkzxSRUPz+tkSvQ=; b=v1XcgAIORS5G+fjUU4yrRzRcON3nB8uvYPICy/UIh6w3504sf/JwZslLsnT4tZKAbx 8reqAWB2UXUHVSor4XuC7G2d4KaKnwqLUnkhfyXSmhT+ZC3ILgXndcZwM4T4I1YL+3RT CezSAc+KjC/YT8IZlViTXhhFo5iJc2Zu7dJuLPmcbW0lr8iDfzMRrsNNcoi+J1xHdpQr dgFBWyd9KwIXnNqI+gkxfMkwZ7UaUSMSt9sidHk3kcGg3BTTors8czgT9YOPzjZIJdz6 y6qrnf/kzyTsj146eWOusiO1Lfl5HiXWF5mUEjUKjBvIN7lxpoVK4/o7sgj1MFXXNOPP HRJQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n14-20020a05640204ce00b004475c9ad046si6633553edw.620.2022.09.18.18.31.38; Sun, 18 Sep 2022 18:32:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229671AbiISB2g (ORCPT + 99 others); Sun, 18 Sep 2022 21:28:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59540 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229652AbiISB2f (ORCPT ); Sun, 18 Sep 2022 21:28:35 -0400 Received: from mail.nfschina.com (mail.nfschina.com [124.16.136.209]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 6927B186EE; Sun, 18 Sep 2022 18:28:32 -0700 (PDT) Received: from localhost (unknown [127.0.0.1]) by mail.nfschina.com (Postfix) with ESMTP id 07F9A1E80D75; Mon, 19 Sep 2022 09:25:34 +0800 (CST) X-Virus-Scanned: amavisd-new at test.com Received: from mail.nfschina.com ([127.0.0.1]) by localhost (mail.nfschina.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id sGjsW4Xt2sJy; Mon, 19 Sep 2022 09:25:31 +0800 (CST) Received: from localhost.localdomain (unknown [219.141.250.2]) (Authenticated sender: zeming@nfschina.com) by mail.nfschina.com (Postfix) with ESMTPA id 1DAAC1E80CAB; Mon, 19 Sep 2022 09:25:31 +0800 (CST) From: Li zeming To: axboe@kernel.dk Cc: linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, Li zeming Subject: [PATCH] block: Remove unnecessary (void*) conversions Date: Mon, 19 Sep 2022 09:28:25 +0800 Message-Id: <20220919012825.2936-1-zeming@nfschina.com> X-Mailer: git-send-email 2.18.2 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The key pointer does not need to cast the type. Signed-off-by: Li zeming --- block/blk-iocost.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.18.2