]> git.baikalelectronics.ru Git - kernel.git/commit
media: vicodec: make life easier for static analyzers
authorMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Thu, 22 Aug 2019 14:41:45 +0000 (11:41 -0300)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Mon, 26 Aug 2019 17:02:22 +0000 (14:02 -0300)
commit0017287e64a356b3612ff1a0808ff71a818dc07d
treeb4a6d1f30da2171e76f1cf385a163fe0e1bfd602
parentb298cc7f7d4ab08339d165723ddc16e5b07ced67
media: vicodec: make life easier for static analyzers

cppcheck incorrectly produces an error here:
[drivers/media/platform/vicodec/vicodec-core.c:1677]: (error) Pointer addition with NULL pointer.

While this is actually a false positive, it doesn't hurt to
reorder the checks to make the code simpler, handling first
the error patch, where no color or alpha components are there.

Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/platform/vicodec/vicodec-core.c