summaryrefslogtreecommitdiffstats
path: root/drivers/staging/media/hantro/hantro_v4l2.c
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2020-01-08 06:35:34 +0100
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>2020-01-09 15:35:23 +0100
commit0caf62c8df8d59c5c367405e3163735478292706 (patch)
tree6b6715a8c9ed2148f0aadfbe563cc85936af7c9d /drivers/staging/media/hantro/hantro_v4l2.c
parent0c8c1ae155b89be7e0cd7e74494dfc83554c56d2 (diff)
downloadlinux-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/hantro_v4l2.c')
-rw-r--r--drivers/staging/media/hantro/hantro_v4l2.c2
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;
}