]> git.baikalelectronics.ru Git - kernel.git/commit
media: platform/sh_veu.c: remove redundant NULL pointer checks
authorShaobo He <shaobo@cs.utah.edu>
Thu, 28 Feb 2019 22:54:06 +0000 (17:54 -0500)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Tue, 19 Mar 2019 17:49:19 +0000 (13:49 -0400)
commita46de856e4ebc907a4c64970305dcd33dc0c887d
treefbb6ae612471441d88a63a1a2d88f97dbdaeb3fa
parent33ee55435fa8903748463cfeb90021955343d499
media: platform/sh_veu.c: remove redundant NULL pointer checks

Function `sh_veu_find_fmt` returns an address that is an addition of a
base pointer `sh_veu_fmt` and an offset. The base pointer refers to a
global variable of which address cannot be NULL. Therefore, this commit
removes the NULL pointer checks on the return values of function
`sh_veu_find_fmt`.

Signed-off-by: Shaobo He <shaobo@cs.utah.edu>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/platform/sh_veu.c