From: Yaroslav Furman Date: Fri, 22 Jun 2018 18:55:01 +0000 (+0300) Subject: s5p_mfc_[dec/enc]_ops: fix parentheses-equality warnings X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=eea0ba5dfa8bc700919b1c77259b26f657daa75f;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git s5p_mfc_[dec/enc]_ops: fix parentheses-equality warnings Signed-off-by: Yaroslav Furman --- 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);