From: Mariusz Kozlowski Date: Sun, 7 Jan 2007 13:39:44 +0000 (-0300) Subject: V4L/DVB (5028): Tvmixer module_put cleanup X-Git-Tag: v2.6.21-rc2~66^2~177 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cededbfcbc31230c1717a7ed27ff6cf82734e568;p=linux-2.6 V4L/DVB (5028): Tvmixer module_put cleanup Removes redundant argument check for module_put() Signed-off-by: Mariusz Kozlowski Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/video/tvmixer.c b/drivers/media/video/tvmixer.c index 7ea9132a19..3ae5a9cd2e 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; }