projects
/
kernel
/
kernel-generic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
22071a4
)
V4L/DVB (5027): Cpia module_put cleanup
author
Mariusz Kozlowski
<m.kozlowski@tuxland.pl>
Sun, 7 Jan 2007 13:36:24 +0000
(10:36 -0300)
committer
Mauro Carvalho Chehab
<mchehab@infradead.org>
Wed, 21 Feb 2007 15:34:17 +0000
(13:34 -0200)
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>
drivers/media/video/cpia.c
patch
|
blob
|
history
diff --git
a/drivers/media/video/cpia.c
b/drivers/media/video/cpia.c
index
7e8d5ef
..
735a52a
100644
(file)
--- 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 --------------------- */