aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/tvmixer.c
diff options
context:
space:
mode:
authorMariusz Kozlowski <m.kozlowski@tuxland.pl>2007-01-07 10:39:44 -0300
committerMauro Carvalho Chehab <mchehab@infradead.org>2007-02-21 13:34:18 -0200
commitcededbfcbc31230c1717a7ed27ff6cf82734e568 (patch)
treea6c431032a80715f4192a3e8733c8fc262616058 /drivers/media/video/tvmixer.c
parentV4L/DVB (5027): Cpia module_put cleanup (diff)
downloadlinux-dev-cededbfcbc31230c1717a7ed27ff6cf82734e568.tar.xz
linux-dev-cededbfcbc31230c1717a7ed27ff6cf82734e568.zip
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>
Diffstat (limited to '')
-rw-r--r--drivers/media/video/tvmixer.c3
1 files changed, 1 insertions, 2 deletions
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;
}