media: hantro: remove a pointless NULL check

This can't be NULL and we've already dereferenced it so let's remove
the check.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
This commit is contained in:
Dan Carpenter 2020-01-08 06:35:34 +01:00 committed by Mauro Carvalho Chehab
parent 0c8c1ae155
commit 0caf62c8df
1 changed files with 1 additions and 1 deletions

View File

@ -688,7 +688,7 @@ static int hantro_start_streaming(struct vb2_queue *q, unsigned int count)
return ret;
err_codec_exit:
if (ctx->codec_ops && ctx->codec_ops->exit)
if (ctx->codec_ops->exit)
ctx->codec_ops->exit(ctx);
return ret;
}