Skip to contentSkip to conversation

fs: proc module_put cleanup

PATCH New Mariusz Kozlowski 1 participant 1 message Jan 2, 2007 Proc filesystem

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fs: proc module_put cleanup

Hello,

This patch removes redundant argument check for module_put().

 fs/proc/inode.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
fs/proc/inode.c +1 -2
diff -upr linux-2.6.20-rc2-mm1-a/fs/proc/inode.c linux-2.6.20-rc2-mm1-b/fs/proc/inode.c
@@ -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