Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp484207rwe; Wed, 19 Apr 2023 01:28:54 -0700 (PDT) X-Google-Smtp-Source: AKy350aCjasswQcAPFDGlU+P+JiyZRqepi/ocjDOp0lQVL4ham/nJzFBdnUlDRMfGn543EnNlwI+ X-Received: by 2002:a05:6870:5625:b0:17a:b55f:eda4 with SMTP id m37-20020a056870562500b0017ab55feda4mr2589628oao.24.1681892934186; Wed, 19 Apr 2023 01:28:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681892934; cv=none; d=google.com; s=arc-20160816; b=ORF7BaaNxm6XXmFP/YH04aBeTNuvmJopuRqIQSNOVgZ7kmqWsDNxY15RJRRGS44nWT 1mAjf2Slrlr5e6+zwCq0yiDLRfkVj3aUqwyt4Y7oRFbzQSveyawIbcsjvYTzhHWc+pqR fCFTL6oC3n/ZBCq6lb/yT8Uq4Akf5ofkaDeii/GtGuVYGoK8OQKg/1MLi+8upN4SK87O XcFildwdL/3IZ4lX3wDCYKX/LL4xB+E7/2Y7Rfv7QqqgS/FtjhBzsiD8eEbFHx6RITxF QmxbXkRjzcalq1HElV9dPVFoY8m2tIZ08C0bLUlWR9HuqvgA0k/e0+OCGt9NL/rWLG/M IZBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=+GNznAtwgdOlfc2dcmPPedszlOvnjOuzssvhnn5LLIA=; b=JO1WCMTkuNW6xTHlFcAhStznp2GF8tyjk9dBb9JKmlMEw6AEr9iiOxvbI7SuzN8z+I zkn/wCfcSc508SJNAyu+40P5OcI8oFIJPHfzd0+3U+h3gFpiXVYN5m06zDmeYfDyRD15 duPi2FiRf+T8Iyqhx6riuI8ZfG2MZF6b8wwG/CyBn2+6nwENE1nu9RI4S4HWhjAKWU7w yDZ/wnt3Kz+vbTLHwEoVokJVStDNKw6comweUQ6oEDSkN69Wgz3OgnPx5spZqiSfwu4q WNzlOpUzlCrOoUGp1GkvqgiyGP5J0+UGQ1IuhId06rC5v9uCfn4ZKq3sa447y8h8ZB+V oQSg== 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 cc14-20020a05683061ce00b006a5f90e92ecsi4731270otb.268.2023.04.19.01.28.40; Wed, 19 Apr 2023 01:28:54 -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 S232435AbjDSITy (ORCPT + 99 others); Wed, 19 Apr 2023 04:19:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57986 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232390AbjDSITt (ORCPT ); Wed, 19 Apr 2023 04:19:49 -0400 Received: from mail.nfschina.com (unknown [42.101.60.195]) by lindbergh.monkeyblade.net (Postfix) with SMTP id 7803F18B for ; Wed, 19 Apr 2023 01:19:47 -0700 (PDT) Received: from localhost.localdomain (unknown [180.167.10.98]) by mail.nfschina.com (Maildata Gateway V2.8.8) with ESMTPA id A57181835D2872; Wed, 19 Apr 2023 16:19:28 +0800 (CST) X-MD-Sfrom: yunchuan@nfschina.com X-MD-SrcIP: 180.167.10.98 From: yunchuan To: sudeep.holla@arm.com, cristian.marussi@arm.com Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, yunchuan Subject: [PATCH] firmware: arm_scmi: Remove unnecessary (void*) conversions Date: Wed, 19 Apr 2023 16:19:20 +0800 Message-Id: <20230419081920.857144-1-yunchuan@nfschina.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,RDNS_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no 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 Pointer variables of void * type do not require type cast. Signed-off-by: yunchuan --- drivers/firmware/arm_scmi/virtio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/firmware/arm_scmi/virtio.c b/drivers/firmware/arm_scmi/virtio.c index d68c01cb7aa0..f0863b9c0e5d 100644 --- a/drivers/firmware/arm_scmi/virtio.c +++ b/drivers/firmware/arm_scmi/virtio.c @@ -392,7 +392,7 @@ static bool virtio_chan_available(struct device_node *of_node, int idx) if (WARN_ON_ONCE(!scmi_vdev)) return false; - channels = (struct scmi_vio_channel *)scmi_vdev->priv; + channels = scmi_vdev->priv; switch (idx) { case VIRTIO_SCMI_VQ_TX: -- 2.30.2