media: meson/ge2d: set ret to -ENOMEM
Fix this smatch warning: drivers/media/platform/meson/ge2d/ge2d.c:991 ge2d_probe() warn: missing error code 'ret' when video_device_alloc() returns NULL. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Cc: Neil Armstrong <narmstrong@baylibre.com> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
This commit is contained in:
committed by
Mauro Carvalho Chehab
parent
048c96e286
commit
8089651cd9
@@ -988,6 +988,7 @@ static int ge2d_probe(struct platform_device *pdev)
|
|||||||
vfd = video_device_alloc();
|
vfd = video_device_alloc();
|
||||||
if (!vfd) {
|
if (!vfd) {
|
||||||
v4l2_err(&ge2d->v4l2_dev, "Failed to allocate video device\n");
|
v4l2_err(&ge2d->v4l2_dev, "Failed to allocate video device\n");
|
||||||
|
ret = -ENOMEM;
|
||||||
goto unreg_v4l2_dev;
|
goto unreg_v4l2_dev;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user