]> asedeno.scripts.mit.edu Git - linux.git/commit
media: pxa_camera: fix smatch warning
authorHans Verkuil <hverkuil-cisco@xs4all.nl>
Thu, 7 Feb 2019 09:13:38 +0000 (04:13 -0500)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Thu, 7 Feb 2019 17:38:24 +0000 (12:38 -0500)
commitdb89a47fb9c71e769b817fa669631b04c2aba440
tree91182f129cf9edba20a7ea1a3c6a72f3517814e8
parentd75e77ed14f86034ace17e65ab6a6261dd0858c2
media: pxa_camera: fix smatch warning

drivers/media/platform/pxa_camera.c:2400 pxa_camera_probe() error: we previously assumed 'pcdev->pdata' could be null (see line 2397)

First check if platform data is provided, then check if DT data is provided,
and if neither is provided just return with -ENODEV.

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/platform/pxa_camera.c