Skip to content

Commit c80a67b

Browse files
ISCAS-Vulabgregkh
authored andcommitted
debugfs: file: Remove unnecessary cast in kfree()
Remove unnecassary casts in the argument to kfree. Signed-off-by: Xu Wang <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 178bdbe commit c80a67b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/debugfs/file.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ static int full_proxy_release(struct inode *inode, struct file *filp)
273273
r = real_fops->release(inode, filp);
274274

275275
replace_fops(filp, d_inode(dentry)->i_fop);
276-
kfree((void *)proxy_fops);
276+
kfree(proxy_fops);
277277
fops_put(real_fops);
278278
return r;
279279
}

0 commit comments

Comments
 (0)