Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2945606pxa; Tue, 18 Aug 2020 02:13:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzPcf7/LzWOp8zNhnc2vVLLE0rQTZUCD5CAPygzCjQy1c5SGgupLzXaPo1dRobHqtNpVUSC X-Received: by 2002:a17:906:990c:: with SMTP id zl12mr18739039ejb.488.1597742032036; Tue, 18 Aug 2020 02:13:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597742032; cv=none; d=google.com; s=arc-20160816; b=Y3h3h46xdhPpSm704csTpvCjImedl+JskkSw05LhtiOKUZkF4LRKy5HS+CTTeNt7S+ sQXlp12tvaSaqvO9bpgRiYkRXwaPoPO+SarfFFXogj/g1LFSKw9NtuTHe76xbMZx+IV7 VIWkFbJf9CAgkiz6zVoBI9robwpTRnJM8hafwal2V6CEaNvDd8Iqf9M2tjmYuXAEvxzH BvkhpK7l7hRbi4yB9DGQii2CEmVIYdEndllMCTVEnpXY9lgR+f7m3NrHEzaTXGRjBfVP WlDrZ5eJ9onkh7jmF5CbUcafL14MOE5ySHGrGO5rZp+lR7jTv6MI/uckFHsTXrF6RwFO SXLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=BLCgkEeZm5Smf4Y5Rog3GmD77xQD2JUWFkqflsG/g+s=; b=RsWzXwm4tQtwKUzMD8MlR4uPcX8fjrbv7SGDGRZSEkURjGyTbJWDHfnZbuHCA4yzM6 wcUYFhrs2Uv2Or3NWHCzyHx7cazcGZD6fRjADw+VYP8lZyOvTt91Rmq4eI/9XR6sskoW WIhS9itbrN9mkxHJZ4sbr+eEC7r9+b1Kkufi37mFPDOtA51740w6jypNwvMtSfazcuFj 5glb+3jboHH2G+C6HIt98r8ZQ6y8yVI9IalUnpuxtXRj8sf8J+e2CdAVViPnpNW0FehP u3WVzDenp5tpzoZ4ztsn334tJyYQQYwpVfdwlaMfgcBFtzsgy4Sy0JB/X86FQQCN5vdy Zofw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w1si12359534eds.83.2020.08.18.02.13.27; Tue, 18 Aug 2020 02:13:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726648AbgHRJLK (ORCPT + 99 others); Tue, 18 Aug 2020 05:11:10 -0400 Received: from smtp21.cstnet.cn ([159.226.251.21]:33276 "EHLO cstnet.cn" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726353AbgHRJLJ (ORCPT ); Tue, 18 Aug 2020 05:11:09 -0400 Received: from localhost (unknown [159.226.5.99]) by APP-01 (Coremail) with SMTP id qwCowACHj28hmztfkV2MAQ--.16438S2; Tue, 18 Aug 2020 17:10:58 +0800 (CST) From: Xu Wang To: aelior@marvell.com, GR-everest-linux-l2@marvell.com, davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Xu Wang Subject: [PATCH] qed_main: Remove unnecessary cast in kfree Date: Tue, 18 Aug 2020 09:10:56 +0000 Message-Id: <20200818091056.12309-1-vulab@iscas.ac.cn> X-Mailer: git-send-email 2.17.1 X-CM-TRANSID: qwCowACHj28hmztfkV2MAQ--.16438S2 X-Coremail-Antispam: 1UD129KBjvdXoW7JrWxuryxXFWkJr43urykZrb_yoWxKFb_Kr 1jvr4fuF4UJryIkw13KrsrZa4v9F1DZw1fWa12gFWaq39rA3Z8AryUZryxXFWUu347AFyD A3srJFyxAw10kjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUIcSsGvfJTRUUUbcAFF20E14v26r4j6ryUM7CY07I20VC2zVCF04k26cxKx2IYs7xG 6rWj6s0DM7CIcVAFz4kK6r1j6r18M28lY4IEw2IIxxk0rwA2F7IY1VAKz4vEj48ve4kI8w A2z4x0Y4vE2Ix0cI8IcVAFwI0_Xr0_Ar1l84ACjcxK6xIIjxv20xvEc7CjxVAFwI0_Cr0_ Gr1UM28EF7xvwVC2z280aVAFwI0_GcCE3s1l84ACjcxK6I8E87Iv6xkF7I0E14v26rxl6s 0DM2AIxVAIcxkEcVAq07x20xvEncxIr21l5I8CrVACY4xI64kE6c02F40Ex7xfMcIj6xII jxv20xvE14v26r1q6rW5McIj6I8E87Iv67AKxVWxJr0_GcWlOx8S6xCaFVCjc4AY6r1j6r 4UM4x0Y48IcxkI7VAKI48JM4x0x7Aq67IIx4CEVc8vx2IErcIFxwCY02Avz4vE14v_GFWl 42xK82IYc2Ij64vIr41l4I8I3I0E4IkC6x0Yz7v_Jr0_Gr1lx2IqxVAqx4xG67AKxVWUJV WUGwC20s026x8GjcxK67AKxVWUGVWUWwC2zVAF1VAY17CE14v26r126r1DMIIYrxkI7VAK I48JMIIF0xvE2Ix0cI8IcVAFwI0_Jr0_JF4lIxAIcVC0I7IYx2IY6xkF7I0E14v26r1j6r 4UMIIF0xvE42xK8VAvwI8IcIk0rVWrJr0_WFyUJwCI42IY6I8E87Iv67AKxVWUJVW8JwCI 42IY6I8E87Iv6xkF7I0E14v26r4j6r4UJbIYCTnIWIevJa73UjIFyTuYvjfUrCzuDUUUU X-Originating-IP: [159.226.5.99] X-CM-SenderInfo: pyxotu46lvutnvoduhdfq/1tbiAwoMA13qZTqgpAAAsq Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Remove unnecassary casts in the argument to kfree. Signed-off-by: Xu Wang --- drivers/net/ethernet/qlogic/qed/qed_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/qlogic/qed/qed_main.c b/drivers/net/ethernet/qlogic/qed/qed_main.c index 2558cb680db3..44fff7479e46 100644 --- a/drivers/net/ethernet/qlogic/qed/qed_main.c +++ b/drivers/net/ethernet/qlogic/qed/qed_main.c @@ -484,7 +484,7 @@ int qed_fill_dev_info(struct qed_dev *cdev, static void qed_free_cdev(struct qed_dev *cdev) { - kfree((void *)cdev); + kfree(cdev); } static struct qed_dev *qed_alloc_cdev(struct pci_dev *pdev) -- 2.17.1