[PATCH] drm/panel: remove return value of function drm_panel_add
Linus Walleij
linus.walleij at linaro.org
Sat Aug 1 14:27:32 UTC 2020
On Sat, Aug 1, 2020 at 2:02 PM Bernard Zhao <bernard at vivo.com> wrote:
> The function "int drm_panel_add(struct drm_panel *panel)"
> always returns 0, this return value is meaningless.
> Also, there is no need to check return value which calls
> "drm_panel_add and", error branch code will never run.
>
> Signed-off-by: Bernard Zhao <bernard at vivo.com>
Makes sense.
Reviewed-by: Linus Walleij <linus.walleij at linaro.org>
Yours,
Linus Walleij
More information about the dri-devel
mailing list