Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1477321ybz; Wed, 22 Apr 2020 22:45:54 -0700 (PDT) X-Google-Smtp-Source: APiQypJBCdwwg6w9vAs1xknYsmJFbKuSPhpDYiwrAZsIhWIjNuk1oGW1O6dhUnbzJkXH8vOB4byU X-Received: by 2002:a17:907:1185:: with SMTP id uz5mr1348908ejb.335.1587620754779; Wed, 22 Apr 2020 22:45:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587620754; cv=none; d=google.com; s=arc-20160816; b=cVjdiHVYaFIPpQ7qw86wwtJ6D+zOaT3u0UIBDmCoGlelx6r5XvZ2YZXHx0ux9KYVkQ qCd2n9rLB+Vlct7KPNGXumopUBACtvNPr7UiVDG6L1qP8lDFcjRemjLI/5CNB0SA5OtF TUAZw4+C0xWB0DU1NBJEfLqyK5bvVhNNBTYGaew695VRNeAplxrR4DeCUIlbR9WbctTN SZDeaCEbP5WMO6fc7kwXG29F12bw4p8iFQPbiDnYUjsXeu95+4xe7Kgz4/2lxxoN4gTY qyRHzbhwQ8K9BKIGoCOQombHE4zeE7uERw6pvAz1cqev6TE8S60KxYnnBx4LTYn/ZHFO ZGOw== 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=4fHj6fiAMYYxORr1HHnjTOzEA9Mk19ZQoB2OGmcBVdo=; b=Esf8UD7oQY3yu//exOTwp0QXAFk8cfmJl/QrZfZCEKqq2XpPp1hn/tgaH6b7vBFktN nUpjCcSY3Xaaxb5mdyuF7LvXjmN8M/7NmZKdNQ2adyUOahnT9ZElwOmEHM0Ajh7Ex2EW 0X9kNgBO0zePxd/mNfGQJSP2QeNt17cy+Z/urEy6B6n1OYcGVfNxRg/zN6/pM4IkTcWB 5mgK40kb4uJvHr/BsYqwCfqzP2+hBgHrb6DrdzzaaXQDQIYdwD4AgKqXKuLLGhCZv6L0 hT6jAX/2RbUkwxrwleMM+PQaNR7RDvwv1EEaDHpm88YbWoZx8vV9omtl9f/1rALkqsop 6yuQ== 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 ca20si539462edb.181.2020.04.22.22.45.31; Wed, 22 Apr 2020 22:45:54 -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 S1726766AbgDWFnf (ORCPT + 99 others); Thu, 23 Apr 2020 01:43:35 -0400 Received: from smtp25.cstnet.cn ([159.226.251.25]:50870 "EHLO cstnet.cn" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725854AbgDWFne (ORCPT ); Thu, 23 Apr 2020 01:43:34 -0400 Received: from ubuntu.localdomain (unknown [111.198.230.252]) by APP-05 (Coremail) with SMTP id zQCowADn73_xKqFeXadlAw--.52076S2; Thu, 23 Apr 2020 13:43:17 +0800 (CST) From: Xu Wang To: jhs@mojatatu.com, xiyou.wangcong@gmail.com, jiri@resnulli.us, davem@davemloft.net Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] net: sched : Remove unnecessary cast in kfree Date: Thu, 23 Apr 2020 13:43:13 +0800 Message-Id: <20200423054313.10535-1-vulab@iscas.ac.cn> X-Mailer: git-send-email 2.17.1 X-CM-TRANSID: zQCowADn73_xKqFeXadlAw--.52076S2 X-Coremail-Antispam: 1UD129KBjDUn29KB7ZKAUJUUUUU529EdanIXcx71UUUUU7v73 VFW2AGmfu7bjvjm3AaLaJ3UjIYCTnIWjp_UUU5t7k0a2IF6w4xM7kC6x804xWl14x267AK xVWUJVW8JwAFc2x0x2IEx4CE42xK8VAvwI8IcIk0rVWrJVCq3wAFIxvE14AKwVWUJVWUGw A2ocxC64kIII0Yj41l84x0c7CEw4AK67xGY2AK021l84ACjcxK6xIIjxv20xvE14v26r1I 6r4UM28EF7xvwVC0I7IYx2IY6xkF7I0E14v26r4j6F4UM28EF7xvwVC2z280aVAFwI0_Gr 1j6F4UJwA2z4x0Y4vEx4A2jsIEc7CjxVAFwI0_Cr1j6rxdM2AIxVAIcxkEcVAq07x20xvE ncxIr21l5I8CrVACY4xI64kE6c02F40Ex7xfMcIj6xIIjxv20xvE14v26r1j6r18McIj6I 8E87Iv67AKxVWUJVW8JwAm72CE4IkC6x0Yz7v_Jr0_Gr1lF7xvr2IYc2Ij64vIr41l42xK 82IYc2Ij64vIr41l4I8I3I0E4IkC6x0Yz7v_Jr0_Gr1lx2IqxVAqx4xG67AKxVWUJVWUGw C20s026x8GjcxK67AKxVWUGVWUWwC2zVAF1VAY17CE14v26r126r1DMIIYrxkI7VAKI48J MIIF0xvE2Ix0cI8IcVAFwI0_Jr0_JF4lIxAIcVC0I7IYx2IY6xkF7I0E14v26r1j6r4UMI IF0xvE42xK8VAvwI8IcIk0rVWrZr1j6s0DMIIF0xvEx4A2jsIE14v26r1j6r4UMIIF0xvE x4A2jsIEc7CjxVAFwI0_Jr0_GrUvcSsGvfC2KfnxnUUI43ZEXa7IU8P5r7UUUUU== X-Originating-IP: [111.198.230.252] X-CM-SenderInfo: pyxotu46lvutnvoduhdfq/1tbiBgAPA10Tew886AAAsk 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 --- net/sched/em_ipt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/sched/em_ipt.c b/net/sched/em_ipt.c index eecfe072c508..18755d29fd15 100644 --- a/net/sched/em_ipt.c +++ b/net/sched/em_ipt.c @@ -199,7 +199,7 @@ static void em_ipt_destroy(struct tcf_ematch *em) im->match->destroy(&par); } module_put(im->match->me); - kfree((void *)im); + kfree(im); } static int em_ipt_match(struct sk_buff *skb, struct tcf_ematch *em, -- 2.17.1