Files
linux/drivers/gpu/drm/sun4i
Christophe JAILLET ef5760f960 drm/sun4i: Fix a return value in case of error
[ Upstream commit 0f0861e31e ]

If 'sun4i_backend_drm_format_to_layer()' does not return 0, then 'val' is
left unmodified.
As it is not initialized either, the return value can be anything.

It is likely that returning the error code was expected here.

As the only caller of 'sun4i_backend_update_layer_formats()' does not check
the return value, this fix is purely theorical.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-11-30 08:39:10 +00:00
..
2016-05-30 08:28:33 +02:00
2016-09-08 09:31:13 +02:00
2016-04-28 10:30:05 +02:00
2016-09-22 10:13:08 +03:00
2016-09-08 09:31:13 +02:00