Skip to contentSkip to conversation

video: tvmixer module_put cleanup

PATCH New Mariusz Kozlowski 1 participant 1 message Jan 2, 2007 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 video: tvmixer module_put cleanup

Hello,

This patch removes redundant argument check for module_put().

 drivers/media/video/tvmixer.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/media/video/tvmixer.c +1 -2
diff -upr linux-2.6.20-rc2-mm1-a/drivers/media/video/tvmixer.c linux-2.6.20-rc2-mm1-b/drivers/media/video/tvmixer.c
@@ -213,8 +213,7 @@ static int tvmixer_release(struct inode 
 		return -ENODEV;
 	}
 
-	if (client->adapter->owner)
-		module_put(client->adapter->owner);
+	module_put(client->adapter->owner);
 	return 0;
 }
 
Signature · 3 lines
Regards,

	Mariusz Kozlowski