Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp18596817rwd; Tue, 27 Jun 2023 20:40:03 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7hYvPnnvRnvg8OzawDN8/wjFmw2gV8xktNERaNUJN3c6MYAD9uFwAIFtZUAJ1ki236lVxm X-Received: by 2002:aa7:cd55:0:b0:51d:92ae:e280 with SMTP id v21-20020aa7cd55000000b0051d92aee280mr6779873edw.3.1687923581960; Tue, 27 Jun 2023 20:39:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687923581; cv=none; d=google.com; s=arc-20160816; b=yt0R9GcCk8nkhlAlcDA5B96qJ5TEO84ddwvZWpa7bvjfjpS5qtwWpyg9wZMHWOpwEh IJ316HTYVUQ2ljqM/QIflWU2tDrGWfGxq9fm/ozlkEnoE96HST9fHzCnFGyNuYllmb6v zn7tX1/fJbGbeDwwWRvBlkPRpx/69k6VNtOcdqNJYaRcvUdqGIEovgPQk4ZQ6jJWos1o VcEdDTfnI9tWj3nI3EL1Qjb/ptzcSUYjBXIgN6+l6+ZC0H9R/BmGgZLer1/KLfpGgXeF JeKynvildq2p+gaNJJHUSMNbgdlP89SaA3V6RWbtLOUcbN2StTaJk5BCjp/hg4n6sxfP NMlQ== 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=cQ5MAOL96+WjiIoSVmXkpcO7ZNILRL+tQ0TKfShwsoo=; fh=ZaKwhkAjE9ccosVuNS8Ay5Qk53ZJ9l8psSpgOR+5EWY=; b=DXqOqVbmNi8G/kO+scafPu44MxvV7Z+6go4qSRAeaj7fgcMZzDNvSXXL2dD7B//L0n KRwnffyVOUeM3LWrd1YrkHSRnMy04YM8lSEnUqIozJs4P92BKV7hWGNMibYmzNfd2GRF fLHG10dGwKFXTtRJbYeEeBDvjZpmQze/L3KLoQhHVd/+APu/DI2BOIks9loT8mq25OPY OQaVwUfCK8GFGvwGJLsnWUa3uVSL+FYnK35Q3f8S6S+cVMWLZSskD/vci8igcJIFfl9c XDXCumTn9OSiazMLLCXvCZVmjnDkcPlXksMWk5SbVoDSg5gd+6G1+qPaDh6zxv0hhiJo xVJw== 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 k3-20020a05640212c300b0051be9f09bf8si4955720edx.9.2023.06.27.20.39.15; Tue, 27 Jun 2023 20:39:41 -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 S231267AbjF1CpR (ORCPT + 99 others); Tue, 27 Jun 2023 22:45:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43488 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231274AbjF1Co7 (ORCPT ); Tue, 27 Jun 2023 22:44:59 -0400 Received: from mail.nfschina.com (unknown [42.101.60.195]) by lindbergh.monkeyblade.net (Postfix) with SMTP id 432F32D4B; Tue, 27 Jun 2023 19:44:42 -0700 (PDT) Received: from localhost.localdomain (unknown [180.167.10.98]) by mail.nfschina.com (Maildata Gateway V2.8.8) with ESMTPA id 1E428604D9369; Wed, 28 Jun 2023 10:44:40 +0800 (CST) X-MD-Sfrom: yunchuan@nfschina.com X-MD-SrcIP: 180.167.10.98 From: wuych To: jesse.brandeburg@intel.com, anthony.l.nguyen@intel.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com Cc: intel-wired-lan@lists.osuosl.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, wuych Subject: [PATCH net-next 04/10] ice: Remove unnecessary (void*) conversions Date: Wed, 28 Jun 2023 10:44:38 +0800 Message-Id: <20230628024438.1440226-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: wuych --- drivers/net/ethernet/intel/ice/ice_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/intel/ice/ice_main.c b/drivers/net/ethernet/intel/ice/ice_main.c index 42c318ceff61..dbd70545d05e 100644 --- a/drivers/net/ethernet/intel/ice/ice_main.c +++ b/drivers/net/ethernet/intel/ice/ice_main.c @@ -6459,7 +6459,7 @@ static void ice_tx_dim_work(struct work_struct *work) u16 itr; dim = container_of(work, struct dim, work); - rc = (struct ice_ring_container *)dim->priv; + rc = dim->priv; WARN_ON(dim->profile_ix >= ARRAY_SIZE(tx_profile)); @@ -6479,7 +6479,7 @@ static void ice_rx_dim_work(struct work_struct *work) u16 itr; dim = container_of(work, struct dim, work); - rc = (struct ice_ring_container *)dim->priv; + rc = dim->priv; WARN_ON(dim->profile_ix >= ARRAY_SIZE(rx_profile)); -- 2.30.2