s5p_mfc_[dec/enc]_ops: fix parentheses-equality warnings
authorYaroslav Furman <yaro330@gmail.com>
Fri, 22 Jun 2018 18:55:01 +0000 (21:55 +0300)
committerMichael Benedict <michaelbt@live.com>
Sat, 31 Aug 2019 15:08:49 +0000 (01:08 +1000)
Signed-off-by: Yaroslav Furman <yaro330@gmail.com>
drivers/media/platform/exynos/mfc/s5p_mfc_dec_ops.c
drivers/media/platform/exynos/mfc/s5p_mfc_enc_ops.c

index 8927752b04024c6d3794bb5842dbb330117ae1bb..9b1d11f42c6f83094f57dc8118f68ebb3b3dfb9b 100644 (file)
@@ -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);
index 5e540c5a5030fdf42f07094dddce2d79d631e0d0..1416a85d699eedc0ef6c7a272786143d99ec88d1 100644 (file)
@@ -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);