diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-01-07 11:36:24 -0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-01-07 11:36:24 -0200 |
commit | 33faade7ca580e812dc413082312bd0f79dd13ee (patch) | |
tree | 5c04c839245af6187bca2848dcb2f1b77d5f53a0 /linux/drivers | |
parent | edab3cbdd71092445be96a9f6de0d625dbe795cc (diff) | |
download | mediapointer-dvb-s2-33faade7ca580e812dc413082312bd0f79dd13ee.tar.gz mediapointer-dvb-s2-33faade7ca580e812dc413082312bd0f79dd13ee.tar.bz2 |
Cpia module_put cleanup
From: Mariusz Kozlowski <m.kozlowski@tuxland.pl>
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 'linux/drivers')
-rw-r--r-- | linux/drivers/media/video/cpia.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/linux/drivers/media/video/cpia.c b/linux/drivers/media/video/cpia.c index 7f2796b73..9214c15c4 100644 --- a/linux/drivers/media/video/cpia.c +++ b/linux/drivers/media/video/cpia.c @@ -3156,8 +3156,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 --------------------- */ |