diff options
author | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2017-04-19 07:48:56 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2017-04-19 07:48:56 -0300 |
commit | 5bc3ebc3c6f57c2b30126f113bc35ec95c6f5b5d (patch) | |
tree | f4c89a2d5aa798b0f3b5230f5937c3f953f830a2 /drivers/media/platform/mtk-vcodec/mtk_vcodec_util.h | |
parent | 03d67e706fc0cbae4871d82b8c1defd76f3cefd8 (diff) | |
download | blackbird-op-linux-5bc3ebc3c6f57c2b30126f113bc35ec95c6f5b5d.tar.gz blackbird-op-linux-5bc3ebc3c6f57c2b30126f113bc35ec95c6f5b5d.zip |
[media] mtk-vcodec: avoid warnings because of empty macros
Remove those gcc warnings:
drivers/media/platform/mtk-vcodec/mtk_vcodec_dec_pm.c: In function 'mtk_vcodec_dec_pw_on':
drivers/media/platform/mtk-vcodec/mtk_vcodec_dec_pm.c:114:51: warning: suggest braces around empty body in an 'if' statement [-Wempty-body]
mtk_v4l2_err("pm_runtime_get_sync fail %d", ret);
^
By adding braces.
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/platform/mtk-vcodec/mtk_vcodec_util.h')
-rw-r--r-- | drivers/media/platform/mtk-vcodec/mtk_vcodec_util.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/drivers/media/platform/mtk-vcodec/mtk_vcodec_util.h b/drivers/media/platform/mtk-vcodec/mtk_vcodec_util.h index 12480837ff2e..237e144c194f 100644 --- a/drivers/media/platform/mtk-vcodec/mtk_vcodec_util.h +++ b/drivers/media/platform/mtk-vcodec/mtk_vcodec_util.h @@ -66,15 +66,15 @@ extern bool mtk_vcodec_dbg; #else -#define mtk_v4l2_debug(level, fmt, args...) -#define mtk_v4l2_err(fmt, args...) -#define mtk_v4l2_debug_enter() -#define mtk_v4l2_debug_leave() - -#define mtk_vcodec_debug(h, fmt, args...) -#define mtk_vcodec_err(h, fmt, args...) -#define mtk_vcodec_debug_enter(h) -#define mtk_vcodec_debug_leave(h) +#define mtk_v4l2_debug(level, fmt, args...) {} +#define mtk_v4l2_err(fmt, args...) {} +#define mtk_v4l2_debug_enter() {} +#define mtk_v4l2_debug_leave() {} + +#define mtk_vcodec_debug(h, fmt, args...) {} +#define mtk_vcodec_err(h, fmt, args...) {} +#define mtk_vcodec_debug_enter(h) {} +#define mtk_vcodec_debug_leave(h) {} #endif |