From: Mariusz Kozlowski <m.kozlowski@tuxland.pl>
Date: Sun, 7 Jan 2007 13:39:44 +0000 (-0300)
Subject: V4L/DVB (5028): Tvmixer module_put cleanup
X-Git-Tag: firefly_0821_release~31016^2~177
X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=cededbfcbc31230c1717a7ed27ff6cf82734e568;p=firefly-linux-kernel-4.4.55.git

V4L/DVB (5028): Tvmixer module_put cleanup

Removes redundant argument check for module_put()

Signed-off-by: Mariusz Kozlowski <m.kozlowski@tuxland.pl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
---

diff --git a/drivers/media/video/tvmixer.c b/drivers/media/video/tvmixer.c
index 7ea9132a1965..3ae5a9cd2e28 100644
--- a/drivers/media/video/tvmixer.c
+++ b/drivers/media/video/tvmixer.c
@@ -212,8 +212,7 @@ static int tvmixer_release(struct inode *inode, struct file *file)
 		return -ENODEV;
 	}
 
-	if (client->adapter->owner)
-		module_put(client->adapter->owner);
+	module_put(client->adapter->owner);
 	return 0;
 }