Re: [PATCH 1/2] drm/fsl-dcu: remove unneeded 'ret' assignment

2017-02-07 Thread Stefan Agner
On 2016-12-28 08:48, Fabio Estevam wrote: > From: Fabio Estevam > > When devm_kzalloc() fails there is no need to assign an error code > to the 'ret' variable as it will not be used after jumping to the > 'err_node_put' label, so just remove the assignment. > >

[PATCH 1/2] drm/fsl-dcu: remove unneeded 'ret' assignment

2016-12-28 Thread Gabriel Krisman Bertazi
Fabio Estevam writes: > From: Fabio Estevam > > When devm_kzalloc() fails there is no need to assign an error code > to the 'ret' variable as it will not be used after jumping to the > 'err_node_put' label, so just remove the assignment. > > Signed-off-by: Fabio Estevam > --- >

[PATCH 1/2] drm/fsl-dcu: remove unneeded 'ret' assignment

2016-12-28 Thread Fabio Estevam
From: Fabio Estevam When devm_kzalloc() fails there is no need to assign an error code to the 'ret' variable as it will not be used after jumping to the 'err_node_put' label, so just remove the assignment. Signed-off-by: Fabio Estevam ---