From: Mariusz Kozlowski Date: Sun, 7 Jan 2007 13:36:24 +0000 (-0300) Subject: V4L/DVB (5027): Cpia module_put cleanup X-Git-Tag: Ubuntu-5.10.0-12.13~49717^2~178 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=ac3289893052c8e6149a8e93b500e2e4c7d9d418;p=mirror_ubuntu-hirsute-kernel.git V4L/DVB (5027): Cpia module_put cleanup No need for redundant argument check for module_put() Signed-off-by: Mariusz Kozlowski Signed-off-by: Mauro Carvalho Chehab --- 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) static void put_cam(struct cpia_camera_ops* ops) { - if (ops->owner) - module_put(ops->owner); + module_put(ops->owner); } /* ------------------------- V4L interface --------------------- */