• Matthias Kaehlcke's avatar
    [media] vcodec: mediatek: Remove double parentheses · 1085cbf2
    Matthias Kaehlcke authored
    The extra pairs of parentheses are not needed and cause clang
    warnings like this:
    
    drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c:158:32: error: equality comparison with extraneous parentheses [-Werror,-Wparentheses-equality]
                    if ((inst->work_bufs[i].size == 0))
                         ~~~~~~~~~~~~~~~~~~~~~~~~^~~~
    drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c:158:32: note: remove extraneous parentheses around the comparison to silence this warning
                    if ((inst->work_bufs[i].size == 0))
                        ~                        ^   ~
    drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c:158:32: note: use '=' to turn this equality comparison into an assignment
                    if ((inst->work_bufs[i].size == 0))
                                                 ^~
                                                 =
    Signed-off-by: default avatarMatthias Kaehlcke <mka@chromium.org>
    Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
    Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
    1085cbf2
venc_vp8_if.c 13.2 KB