media: hantro: h264: Rename POC_CMP() into HANTRO_CMP()
authorBoris Brezillon <boris.brezillon@collabora.com>
Mon, 9 Sep 2019 07:28:14 +0000 (04:28 -0300)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Tue, 1 Oct 2019 20:10:40 +0000 (17:10 -0300)
commite00cc83ecc3dc4ac9bd9db4f2d6f927d6f43bfd0
tree25245ebe0c9a1152139e1c99b5ba604de9ab530a
parent3e5ba2ac850806efe01e7b2b5451d10468a7dcd1
media: hantro: h264: Rename POC_CMP() into HANTRO_CMP()

And use it for all native type comparisons, even if it's not strictly
required. By doing that we make the code more consistent and prevent
from potential incorrect results in case of overflow or when the the
values being compared are both negative.

Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Tested-by: Francois Buergisser <fbuergisser@chromium.org>
Reviewed-by: Tomasz Figa <tfiga@chromium.org>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/staging/media/hantro/hantro_h264.c