diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2020-01-08 06:35:34 +0100 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2020-01-09 15:35:23 +0100 |
commit | 0caf62c8df8d59c5c367405e3163735478292706 (patch) | |
tree | 6b6715a8c9ed2148f0aadfbe563cc85936af7c9d /drivers/staging/media/hantro | |
parent | 0c8c1ae155b89be7e0cd7e74494dfc83554c56d2 (diff) | |
download | linux-0caf62c8df8d59c5c367405e3163735478292706.tar.bz2 |
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>
Diffstat (limited to 'drivers/staging/media/hantro')
-rw-r--r-- | drivers/staging/media/hantro/hantro_v4l2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/media/hantro/hantro_v4l2.c b/drivers/staging/media/hantro/hantro_v4l2.c index 85af1b96fd34..0198bcda26b7 100644 --- a/drivers/staging/media/hantro/hantro_v4l2.c +++ b/drivers/staging/media/hantro/hantro_v4l2.c @@ -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; } |