drm/tve200: Fix smatch warning
authorLinus Walleij <linus.walleij@linaro.org>
Thu, 5 May 2022 21:50:19 +0000 (23:50 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 26 Aug 2022 12:22:59 +0000 (14:22 +0200)
commit61a9fa154d217c13eea90aa5bc635bc4b1fcb66e
tree3e9e2bc0ec51688a336bc550496fa539291ed18f
parent378e0f9f0b3e03a84db5ed5d3da3850871e9209e
drm/tve200: Fix smatch warning

The "ret" variable is ambiguously returning something that
could be zero in the tve200_modeset_init() function, assign
it an explicit error return code to make this unambiguous.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220505215019.2332613-1-linus.walleij@linaro.org
drivers/gpu/drm/tve200/tve200_drv.c