提交 ac328989 编写于 作者: M Mariusz Kozlowski 提交者: Mauro Carvalho Chehab

V4L/DVB (5027): Cpia module_put cleanup

No need for redundant argument check for module_put()
Signed-off-by: NMariusz Kozlowski <m.kozlowski@tuxland.pl>
Signed-off-by: NMauro Carvalho Chehab <mchehab@infradead.org>
上级 22071a42
......@@ -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 --------------------- */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册