aboutsummaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorMariusz Kozlowski <m.kozlowski@tuxland.pl>2007-01-08 04:59:51 -0500
committerJaroslav Kysela <perex@suse.cz>2007-02-09 03:02:55 -0500
commitc68487151a0dceea07db8632327e3a0ab9e25e1f (patch)
tree2a5b7a89c813bc97571ceb42c68ba4dabab71339 /sound
parentffc26918ab5674b286a4bc07dac7e011cea83e97 (diff)
[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>
Diffstat (limited to 'sound')
-rw-r--r--sound/aoa/fabrics/snd-aoa-fabric-layout.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/aoa/fabrics/snd-aoa-fabric-layout.c b/sound/aoa/fabrics/snd-aoa-fabric-layout.c
index 409809600ddc..fa4a69fcdc27 100644
--- a/sound/aoa/fabrics/snd-aoa-fabric-layout.c
+++ b/sound/aoa/fabrics/snd-aoa-fabric-layout.c
@@ -1034,9 +1034,9 @@ static int aoa_fabric_layout_probe(struct soundbus_dev *sdev)
1034 list_del(&ldev->list); 1034 list_del(&ldev->list);
1035 layouts_list_items--; 1035 layouts_list_items--;
1036 outnodev: 1036 outnodev:
1037 if (sound) of_node_put(sound); 1037 of_node_put(sound);
1038 layout_device = NULL; 1038 layout_device = NULL;
1039 if (ldev) kfree(ldev); 1039 kfree(ldev);
1040 return -ENODEV; 1040 return -ENODEV;
1041} 1041}
1042 1042