From eea0ba5dfa8bc700919b1c77259b26f657daa75f Mon Sep 17 00:00:00 2001 From: Yaroslav Furman Date: Fri, 22 Jun 2018 21:55:01 +0300 Subject: [PATCH] s5p_mfc_[dec/enc]_ops: fix parentheses-equality warnings Signed-off-by: Yaroslav Furman --- drivers/media/platform/exynos/mfc/s5p_mfc_dec_ops.c | 2 +- drivers/media/platform/exynos/mfc/s5p_mfc_enc_ops.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/media/platform/exynos/mfc/s5p_mfc_dec_ops.c b/drivers/media/platform/exynos/mfc/s5p_mfc_dec_ops.c index 8927752b0402..9b1d11f42c6f 100644 --- a/drivers/media/platform/exynos/mfc/s5p_mfc_dec_ops.c +++ b/drivers/media/platform/exynos/mfc/s5p_mfc_dec_ops.c @@ -916,7 +916,7 @@ static int s5p_mfc_dec_get_buf_update_val(struct s5p_mfc_ctx *ctx, struct s5p_mfc_buf_ctrl *buf_ctrl; list_for_each_entry(buf_ctrl, head, list) { - if ((buf_ctrl->id == id)) { + if (buf_ctrl->id == id) { buf_ctrl->val = value; mfc_debug(5, "++id: 0x%08x val: %d\n", buf_ctrl->id, buf_ctrl->val); diff --git a/drivers/media/platform/exynos/mfc/s5p_mfc_enc_ops.c b/drivers/media/platform/exynos/mfc/s5p_mfc_enc_ops.c index 5e540c5a5030..1416a85d699e 100644 --- a/drivers/media/platform/exynos/mfc/s5p_mfc_enc_ops.c +++ b/drivers/media/platform/exynos/mfc/s5p_mfc_enc_ops.c @@ -679,7 +679,7 @@ static int s5p_mfc_enc_get_buf_update_val(struct s5p_mfc_ctx *ctx, struct s5p_mfc_buf_ctrl *buf_ctrl; list_for_each_entry(buf_ctrl, head, list) { - if ((buf_ctrl->id == id)) { + if (buf_ctrl->id == id) { buf_ctrl->val = value; mfc_debug(5, "++id: 0x%08x val: %d\n", buf_ctrl->id, buf_ctrl->val); @@ -1110,7 +1110,7 @@ static int s5p_mfc_enc_set_buf_ctrls_val(struct s5p_mfc_ctx *ctx, struct list_he MFC_WRITEL(value, S5P_FIMV_E_H264_NAL_CONTROL); } - if ((buf_ctrl->id == V4L2_CID_MPEG_MFC51_VIDEO_I_PERIOD_CH)) { + if (buf_ctrl->id == V4L2_CID_MPEG_MFC51_VIDEO_I_PERIOD_CH) { value = MFC_READL(S5P_FIMV_E_GOP_CONFIG2); buf_ctrl->old_val |= (value << 16) & 0x3FFF0000; value &= ~(0x3FFF); -- 2.20.1