Commit c6848715 authored by Mariusz Kozlowski's avatar Mariusz Kozlowski Committed by Jaroslav Kysela

[ALSA] sound: aoa of_node_put and kfree cleanup

This patch removes redundant argument checks for of_node_put() and kfree().
Acked-by: default avatarJohannes Berg <johannes@sipsolutions.net>
Signed-off-by: default avatarMariusz Kozlowski <m.kozlowski@tuxland.pl>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
Signed-off-by: default avatarJaroslav Kysela <perex@suse.cz>
parent ffc26918
...@@ -1034,9 +1034,9 @@ static int aoa_fabric_layout_probe(struct soundbus_dev *sdev) ...@@ -1034,9 +1034,9 @@ static int aoa_fabric_layout_probe(struct soundbus_dev *sdev)
list_del(&ldev->list); list_del(&ldev->list);
layouts_list_items--; layouts_list_items--;
outnodev: outnodev:
if (sound) of_node_put(sound); of_node_put(sound);
layout_device = NULL; layout_device = NULL;
if (ldev) kfree(ldev); kfree(ldev);
return -ENODEV; return -ENODEV;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment