]> git.baikalelectronics.ru Git - kernel.git/commit
media: hantro: remove an unnecessary NULL check
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 7 Jun 2019 13:56:09 +0000 (09:56 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Fri, 21 Jun 2019 20:19:06 +0000 (16:19 -0400)
commit9295b82acff2bbb531d7e7b430807c8c7e757902
treeb2a2bdd19673d62ca4431f7c9aac29892280b515
parent100f0b2d416b533231e29deb0c1b0226141bb6c0
media: hantro: remove an unnecessary NULL check

Thus the address of "&ctx->dev->variant->codec_ops[codec_mode]"
can't possibly be NULL.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
[hverkuil-cisco@xs4all.nl: rebased after rockchip/vpu -> hantro rename]
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/staging/media/hantro/hantro_v4l2.c