From: Xu Wang Date: Thu, 9 Jul 2020 05:40:33 +0000 (+0000) Subject: debugfs: file: Remove unnecessary cast in kfree() X-Git-Tag: block-5.9-2020-08-14~13^2~21 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=c80a67bd5d13e691f730115615885736acc5f1a7;p=linux-block.git debugfs: file: Remove unnecessary cast in kfree() Remove unnecassary casts in the argument to kfree. Signed-off-by: Xu Wang Link: https://lore.kernel.org/r/20200709054033.30148-1-vulab@iscas.ac.cn Signed-off-by: Greg Kroah-Hartman --- 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; }