Skip to contentSkip to conversation

debugfs: file: Remove unnecessary cast in kfree()

PATCH New Xu Wang 1 participant 1 message Jul 9, 2020 Driver core

lore
Share & tools
lore

Xu Wang

author
#0 lore raw

PATCH 1/1 debugfs: file: Remove unnecessary cast in kfree()

Remove unnecassary casts in the argument to kfree.

---
 fs/debugfs/file.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/debugfs/file.c +1 -1
index ae49a55bda00..3753c4c484fc 100644
@@ -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;
 }
Signature · 1 line
2.17.1