]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit47af88f9b77c00eaa0d563f63d3a71679dc8eea6
tree25245ebe0c9a1152139e1c99b5ba604de9ab530a
parent8cbd3e149bfc45e53a5fb81aeae657c504af5514
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