[ALSA] sound: aoa of_node_put and kfree cleanup
This patch removes redundant argument checks for of_node_put() and kfree(). Acked-by: Johannes Berg <johannes@sipsolutions.net> Signed-off-by: Mariusz Kozlowski <m.kozlowski@tuxland.pl> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Jaroslav Kysela <perex@suse.cz>
This commit is contained in:
parent
ffc26918ab
commit
c68487151a
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue