mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-27 20:07:09 +00:00
drm/fsl-dcu: remove unneeded 'ret' assignment
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 <fabio.estevam@nxp.com> Reviewed-by: Gabriel Krisman Bertazi <krisman@collabora.co.uk> Signed-off-by: Stefan Agner <stefan@agner.ch>
This commit is contained in:
parent
4eaa39c63c
commit
5d2883d51d
@ -72,10 +72,8 @@ struct fsl_tcon *fsl_tcon_init(struct device *dev)
|
||||
return NULL;
|
||||
|
||||
tcon = devm_kzalloc(dev, sizeof(*tcon), GFP_KERNEL);
|
||||
if (!tcon) {
|
||||
ret = -ENOMEM;
|
||||
if (!tcon)
|
||||
goto err_node_put;
|
||||
}
|
||||
|
||||
ret = fsl_tcon_init_regmap(dev, tcon, np);
|
||||
if (ret) {
|
||||
|
Loading…
Reference in New Issue
Block a user