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)
commitcb8045072a34d113e51fcd19cec74359b4e8daa9
treeb4a6d1f30da2171e76f1cf385a163fe0e1bfd602
parent59364e971c1c4e2bcf45ee118507d60609337de8
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