From 6abefca79a125a8cbb5e3550669eb9eb47c2e1ce Mon Sep 17 00:00:00 2001 From: Cho KyongHo Date: Tue, 27 Dec 2016 20:29:11 +0900 Subject: [PATCH] [COMMON] media: smfc: compare the conditions clearly The recent versions of the compilers(e.g. GCC 5.3) warn that a unary operator may be used without a care. Therefore, we should wrap the operator and its operands with parenthesis to show clear precedence. Change-Id: Ibc7e758dd67e62182a120bc705a561586a521c70 Signed-off-by: Cho KyongHo --- drivers/media/platform/exynos/smfc/smfc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/platform/exynos/smfc/smfc.h b/drivers/media/platform/exynos/smfc/smfc.h index 9b3ff8fa1df3..0d84eef15641 100644 --- a/drivers/media/platform/exynos/smfc/smfc.h +++ b/drivers/media/platform/exynos/smfc/smfc.h @@ -216,7 +216,7 @@ static inline u32 smfc_config_ctxflag(struct smfc_ctx *ctx, u32 flag, bool set) static inline bool smfc_is_compressed_type(struct smfc_ctx *ctx, __u32 type) { - return !(ctx->flags & SMFC_CTX_COMPRESS) == V4L2_TYPE_IS_OUTPUT(type); + return (!(ctx->flags & SMFC_CTX_COMPRESS)) == V4L2_TYPE_IS_OUTPUT(type); } int smfc_init_controls(struct smfc_dev *smfc, struct v4l2_ctrl_handler *hdlr); -- 2.20.1