[media] media: ti-vpe: cal: Fix warning: variable dereference before being checked
authorBenoit Parrot <bparrot@ti.com>
Fri, 19 Feb 2016 20:00:30 +0000 (18:00 -0200)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Tue, 23 Feb 2016 10:17:27 +0000 (07:17 -0300)
commit2ddf22eec4b88ab0d4235a140db8243eaaab5128
tree5bedade5111e2867d65ea085cb387007c3b1aec5
parent7f67c587cfd9d27cfcaa22a545f6a999432aa023
[media] media: ti-vpe: cal: Fix warning: variable dereference before being checked

As reported ctx->sensor is being dereferenced before being checked
in cal_get_external_info(). That being the case it was also checked
twice in multiple other location where v4l2_subdev_call is already
checking it so no need to explicitly check it again.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Benoit Parrot <bparrot@ti.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/platform/ti-vpe/cal.c