From 7e9b89b1cc339f60019cb0e3014cd7f0c1081fd4 Mon Sep 17 00:00:00 2001 From: Mauro Carvalho Chehab Date: Sun, 7 Jan 2007 11:39:44 -0200 Subject: tvmixer module_put cleanup From: Mariusz Kozlowski This patch removes redundant argument check for module_put(). Signed-off-by: Mariusz Kozlowski Signed-off-by: Mauro Carvalho Chehab --- linux/drivers/media/video/tvmixer.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'linux') diff --git a/linux/drivers/media/video/tvmixer.c b/linux/drivers/media/video/tvmixer.c index 3b59920ac..4e87f5d3b 100644 --- a/linux/drivers/media/video/tvmixer.c +++ b/linux/drivers/media/video/tvmixer.c @@ -234,8 +234,7 @@ static int tvmixer_release(struct inode *inode, struct file *file) client->adapter->dec_use(client->adapter); #endif #if LINUX_VERSION_CODE > KERNEL_VERSION(2,5,54) - if (client->adapter->owner) - module_put(client->adapter->owner); + module_put(client->adapter->owner); #endif return 0; } -- cgit v1.2.3