]> asedeno.scripts.mit.edu Git - linux.git/commit
media: ipu3-imgu: Remove dead code for NULL check
authorYong Zhi <yong.zhi@intel.com>
Fri, 1 Feb 2019 17:23:37 +0000 (12:23 -0500)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Thu, 7 Feb 2019 16:57:51 +0000 (11:57 -0500)
commit505ecd35182f1ba006ada118c85deca22b88ebcb
treecafe368ea5b718342dd4596bc7a95795dcac803d
parent041bc40662a162eff940676a379cc783cb846f32
media: ipu3-imgu: Remove dead code for NULL check

Since ipu3_css_buf_dequeue() never returns NULL, remove the
dead code to fix static checker warning:

drivers/staging/media/ipu3/ipu3.c:493 imgu_isr_threaded()
warn: 'b' is an error pointer or valid

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
[Bug report: https://lore.kernel.org/linux-media/20190104122856.GA1169@kadam/]
Signed-off-by: Yong Zhi <yong.zhi@intel.com>
Reviewed-by: Tomasz Figa <tfiga@chromium.org>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/staging/media/ipu3/ipu3.c