]> git.baikalelectronics.ru Git - kernel.git/commit
[media] mtk-mdp: fix compilation warnings if !DEBUG
authorMauro Carvalho Chehab <mchehab@s-opensource.com>
Fri, 21 Oct 2016 13:56:43 +0000 (11:56 -0200)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Fri, 21 Oct 2016 14:09:41 +0000 (12:09 -0200)
commitc9b4c850e3ca0f56ebaeff11a469b9fdf2dc0012
tree78f5e47c10c34d4bb006eac6858022b2427210b1
parentdec52d3a6c119a451b817ca00b089fb8a1f0ae26
[media] mtk-mdp: fix compilation warnings if !DEBUG

The mtk_mdp_dbg() is empty if !DEBUG. This causes the following
warnings:

drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c: In function ‘mtk_mdp_try_fmt_mplane’:
drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c:231:52: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
        org_w, org_h, pix_mp->width, pix_mp->height);
                                                    ^
drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c: In function ‘mtk_mdp_m2m_start_streaming’:
drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c:414:21: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
        ctx->id, ret);
                     ^

With could actually make the code to do something wrong. So,
add an empty block to make it be parsed ok.

Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/platform/mtk-mdp/mtk_mdp_core.h