Commit c80a67bd authored by Xu Wang's avatar Xu Wang Committed by Greg Kroah-Hartman

debugfs: file: Remove unnecessary cast in kfree()

Remove unnecassary casts in the argument to kfree.
Signed-off-by: default avatarXu Wang <vulab@iscas.ac.cn>
Link: https://lore.kernel.org/r/20200709054033.30148-1-vulab@iscas.ac.cnSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 178bdbed
...@@ -273,7 +273,7 @@ static int full_proxy_release(struct inode *inode, struct file *filp) ...@@ -273,7 +273,7 @@ static int full_proxy_release(struct inode *inode, struct file *filp)
r = real_fops->release(inode, filp); r = real_fops->release(inode, filp);
replace_fops(filp, d_inode(dentry)->i_fop); replace_fops(filp, d_inode(dentry)->i_fop);
kfree((void *)proxy_fops); kfree(proxy_fops);
fops_put(real_fops); fops_put(real_fops);
return r; return r;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment