Commit 0caf62c8 authored by Dan Carpenter's avatar Dan Carpenter Committed by Mauro Carvalho Chehab

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: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+huawei@kernel.org>
parent 0c8c1ae1
...@@ -688,7 +688,7 @@ static int hantro_start_streaming(struct vb2_queue *q, unsigned int count) ...@@ -688,7 +688,7 @@ static int hantro_start_streaming(struct vb2_queue *q, unsigned int count)
return ret; return ret;
err_codec_exit: err_codec_exit:
if (ctx->codec_ops && ctx->codec_ops->exit) if (ctx->codec_ops->exit)
ctx->codec_ops->exit(ctx); ctx->codec_ops->exit(ctx);
return ret; return ret;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment