fs: proc module_put cleanup
PATCH 1/1 fs: proc module_put cleanup
Hello,
This patch removes redundant argument check for module_put().
Signed-off-by Mariusz Kozlowski <[email protected]>
fs/proc/inode.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
fs/proc/inode.c +1 -2
@@ -60,8 +60,7 @@ static void proc_delete_inode(struct ino/* Let go of any associated proc directory entry */ de =PROC_I (inode)->pde;if (de) { -if (de->owner) -module_put (de->owner); +module_put (de->owner);de_put (de); }clear_inode (inode);
Signature · 3 lines
Regards, Mariusz Kozlowski