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)
commit94b5bf3ac9c4b34a2b1516772c63fb94da6ad5d3
treeb2a2bdd19673d62ca4431f7c9aac29892280b515
parent4b1f67dc8edcb4a1e8a1d141609d89fa7d430d46
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