[PATCH AUTOSEL for 4.9 06/56] drm/sun4i: Fix a return value in case of error

2017-11-22 Thread alexander . levin
From: Christophe JAILLET [ Upstream commit 0f0861e31e3c59ca4bc1ec59d99260cfca79740e ] 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 expe

[PATCH AUTOSEL for 4.9 06/56] drm/sun4i: Fix a return value in case of error

2017-11-14 Thread alexander . levin
From: Christophe JAILLET [ Upstream commit 0f0861e31e3c59ca4bc1ec59d99260cfca79740e ] 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 expe