aboutsummaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorMariusz Kozlowski <m.kozlowski@tuxland.pl>2007-01-07 10:36:24 -0300
committerMauro Carvalho Chehab <mchehab@infradead.org>2007-02-21 13:34:17 -0200
commitac3289893052c8e6149a8e93b500e2e4c7d9d418 (patch)
tree0ee2a810aec4bf1f3f56804b4ee8832566796fa9 /drivers
parent22071a42a1b44ae90d232f4bd5d6d3f80ad4eaa2 (diff)
V4L/DVB (5027): Cpia module_put cleanup
No need for 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 'drivers')
-rw-r--r--drivers/media/video/cpia.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/media/video/cpia.c b/drivers/media/video/cpia.c
index 7e8d5ef58b6..735a52a9041 100644
--- a/drivers/media/video/cpia.c
+++ b/drivers/media/video/cpia.c
@@ -3153,8 +3153,7 @@ static int reset_camera(struct cam_data *cam)
static void put_cam(struct cpia_camera_ops* ops)
{
- if (ops->owner)
- module_put(ops->owner);
+ module_put(ops->owner);
}
/* ------------------------- V4L interface --------------------- */