Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1134931ybt; Wed, 8 Jul 2020 22:42:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzKBJ76Sd7MxYIv91meE9h9yG7yuOYMLoHECxX3VUBpql4xATMXXi5J3KeTclNTcacXcrW2 X-Received: by 2002:aa7:d6cf:: with SMTP id x15mr68675818edr.164.1594273327826; Wed, 08 Jul 2020 22:42:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594273327; cv=none; d=google.com; s=arc-20160816; b=uYqjp7a5nQLbP0Dwixzju2sOP5NXRw64gCaWhDLEKk4jMf0Au4UHSXGtynuPxC0Ehf LSDhhcJo93gWgpZkAJ88/e25A7PchgNbFZxSFTdHs3Ns4V+CtQR5e6SqOUbjX42l8W09 ZJIM1ymKKjWC+ZeaKhv2jkstqjASGBLPu5JcwDc0XrWEnrG3ER67hYnufpNGhaMfOC/a XfBwP5ubFJngSP9forCSArXdwG3APhccebMgdSSbq7jN9+3TPXtQ1DWxAyjWl7vUeHtm e6m0Z2Of8Hj9DBM7EXs2QZ7crGSv9NS4SZ3+6cUvlV79OQ2eJbH7TT5ndujnQNpTWeWP aX3A== 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=oL4bF3M21itqNaiidikWyFVbhbbCrpHvH5eSt5RETxM=; b=qbGdGEZyLNh/3lkso21v7QwT+fIi8+fRq7sCFdPNvKow7QYemnp/vhEznbaafnjVRV v7WgF5vKXQu1BIJhT09Sq+7Rrg1OpKVNWCdNvdjT/QynRnmNtMmIQNJD5DAf6c296X/t iZGHevrAcT6sNI+egb17Q8JPyTRhD+AH1qMWKINHKj2FyKJdkFEEMVjELZYbVwz20hh7 kfsg6HAR88TTsGCWXIi60GpmlRAMM4Cs58NuXMacEThzEFSizynH5hTPXkUthk3eaVVk 5GoYEUT07brU21l0huZ0Y+TZjCXllADeDpi+mcCGxLQOUyS7wetNBl0opAVMr6oPqUMr /qlQ== 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 w2si1408054edt.433.2020.07.08.22.41.44; Wed, 08 Jul 2020 22:42:07 -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 S1726343AbgGIFkt (ORCPT + 99 others); Thu, 9 Jul 2020 01:40:49 -0400 Received: from smtp23.cstnet.cn ([159.226.251.23]:47066 "EHLO cstnet.cn" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726091AbgGIFkt (ORCPT ); Thu, 9 Jul 2020 01:40:49 -0400 Received: from localhost (unknown [159.226.5.99]) by APP-03 (Coremail) with SMTP id rQCowADnaPjVrQZfQH+uAw--.11633S2; Thu, 09 Jul 2020 13:40:38 +0800 (CST) From: Xu Wang To: gregkh@linuxfoundation.org, rafael@kernel.org Cc: linux-kernel@vger.kernel.org, Xu Wang Subject: [PATCH] debugfs: file: Remove unnecessary cast in kfree() Date: Thu, 9 Jul 2020 05:40:33 +0000 Message-Id: <20200709054033.30148-1-vulab@iscas.ac.cn> X-Mailer: git-send-email 2.17.1 X-CM-TRANSID: rQCowADnaPjVrQZfQH+uAw--.11633S2 X-Coremail-Antispam: 1UD129KBjDUn29KB7ZKAUJUUUUU529EdanIXcx71UUUUU7v73 VFW2AGmfu7bjvjm3AaLaJ3UjIYCTnIWjp_UUU5R7AC8VAFwI0_Jr0_Gr1l1xkIjI8I6I8E 6xAIw20EY4v20xvaj40_Wr0E3s1l1IIY67AEw4v_Jr0_Jr4l8cAvFVAK0II2c7xJM28Cjx kF64kEwVA0rcxSw2x7M28EF7xvwVC0I7IYx2IY67AKxVW8JVW5JwA2z4x0Y4vE2Ix0cI8I cVCY1x0267AKxVW8JVWxJwA2z4x0Y4vEx4A2jsIE14v26F4UJVW0owA2z4x0Y4vEx4A2js IEc7CjxVAFwI0_Cr1j6rxdM2AIxVAIcxkEcVAq07x20xvEncxIr21l5I8CrVACY4xI64kE 6c02F40Ex7xfMcIj6xIIjxv20xvE14v26r126r1DMcIj6I8E87Iv67AKxVW8Jr0_Cr1UMc vjeVCFs4IE7xkEbVWUJVW8JwACjcxG0xvY0x0EwIxGrwACjI8F5VA0II8E6IAqYI8I648v 4I1l42xK82IYc2Ij64vIr41l4I8I3I0E4IkC6x0Yz7v_Jr0_Gr1lx2IqxVAqx4xG67AKxV WUJVWUGwC20s026x8GjcxK67AKxVWUGVWUWwC2zVAF1VAY17CE14v26r126r1DMIIYrxkI 7VAKI48JMIIF0xvE2Ix0cI8IcVAFwI0_Jr0_JF4lIxAIcVC0I7IYx2IY6xkF7I0E14v26r 1j6r4UMIIF0xvE42xK8VAvwI8IcIk0rVWrZr1j6s0DMIIF0xvEx4A2jsIE14v26r1j6r4U MIIF0xvEx4A2jsIEc7CjxVAFwI0_Gr0_Gr1UYxBIdaVFxhVjvjDU0xZFpf9x0JUBBT5UUU UU= X-Originating-IP: [159.226.5.99] X-CM-SenderInfo: pyxotu46lvutnvoduhdfq/1tbiBQIMA16HQrOxfQABst 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 --- fs/debugfs/file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/debugfs/file.c b/fs/debugfs/file.c index ae49a55bda00..3753c4c484fc 100644 --- a/fs/debugfs/file.c +++ b/fs/debugfs/file.c @@ -273,7 +273,7 @@ static int full_proxy_release(struct inode *inode, struct file *filp) r = real_fops->release(inode, filp); replace_fops(filp, d_inode(dentry)->i_fop); - kfree((void *)proxy_fops); + kfree(proxy_fops); fops_put(real_fops); return r; } -- 2.17.1