aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/cpia.c
diff options
context:
space:
mode:
authorMariusz Kozlowski <m.kozlowski@tuxland.pl>2007-01-07 08:36:24 -0500
committerMauro Carvalho Chehab <mchehab@infradead.org>2007-02-21 10:34:17 -0500
commitac3289893052c8e6149a8e93b500e2e4c7d9d418 (patch)
tree0ee2a810aec4bf1f3f56804b4ee8832566796fa9 /drivers/media/video/cpia.c
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/media/video/cpia.c')
-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 7e8d5ef58b61..735a52a9041a 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)
3153 3153
3154static void put_cam(struct cpia_camera_ops* ops) 3154static void put_cam(struct cpia_camera_ops* ops)
3155{ 3155{
3156 if (ops->owner) 3156 module_put(ops->owner);
3157 module_put(ops->owner);
3158} 3157}
3159 3158
3160/* ------------------------- V4L interface --------------------- */ 3159/* ------------------------- V4L interface --------------------- */