Commit c68487151a0dceea07db8632327e3a0ab9e25e1f
Committed by
Jaroslav Kysela
1 parent
ffc26918ab
Exists in
master
and in
4 other branches
[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>
Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff
sound/aoa/fabrics/snd-aoa-fabric-layout.c
... | ... | @@ -1034,9 +1034,9 @@ |
1034 | 1034 | list_del(&ldev->list); |
1035 | 1035 | layouts_list_items--; |
1036 | 1036 | outnodev: |
1037 | - if (sound) of_node_put(sound); | |
1037 | + of_node_put(sound); | |
1038 | 1038 | layout_device = NULL; |
1039 | - if (ldev) kfree(ldev); | |
1039 | + kfree(ldev); | |
1040 | 1040 | return -ENODEV; |
1041 | 1041 | } |
1042 | 1042 |