Message ID | 20210120094306.784318-4-hverkuil-cisco@xs4all.nl |
---|---|
State | Accepted |
Commit | 8089651cd9edea2663d8e51a2199df8570f8ab45 |
Headers | show |
Series | Fixes for smatch/sparse/sysbot/compiler warnings | expand |
diff --git a/drivers/media/platform/meson/ge2d/ge2d.c b/drivers/media/platform/meson/ge2d/ge2d.c index f526501bd473..153612ca96fc 100644 --- a/drivers/media/platform/meson/ge2d/ge2d.c +++ b/drivers/media/platform/meson/ge2d/ge2d.c @@ -988,6 +988,7 @@ static int ge2d_probe(struct platform_device *pdev) vfd = video_device_alloc(); if (!vfd) { v4l2_err(&ge2d->v4l2_dev, "Failed to allocate video device\n"); + ret = -ENOMEM; goto unreg_v4l2_dev; }
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> --- drivers/media/platform/meson/ge2d/ge2d.c | 1 + 1 file changed, 1 insertion(+)