]> 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)
commit89309f1a0b25edea3babd68ef41e3b691fe50898
tree25245ebe0c9a1152139e1c99b5ba604de9ab530a
parentfbdb836fc652ba9850cf51c06bdba2e5381748be
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