From: Mariusz Kozlowski Date: Sun, 7 Jan 2007 13:36:24 +0000 (-0300) Subject: V4L/DVB (5027): Cpia module_put cleanup X-Git-Tag: v3.12-rc1~31414^2~178 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ac3289893052c8e6149a8e93b500e2e4c7d9d418;p=kernel%2Fkernel-generic.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 7e8d5ef..735a52a 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 --------------------- */