projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ffc2691
)
[ALSA] sound: aoa of_node_put and kfree cleanup
author
Mariusz Kozlowski
<m.kozlowski@tuxland.pl>
Mon, 8 Jan 2007 09:59:51 +0000
(10:59 +0100)
committer
Jaroslav Kysela
<perex@suse.cz>
Fri, 9 Feb 2007 08:02:55 +0000
(09:02 +0100)
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>
sound/aoa/fabrics/snd-aoa-fabric-layout.c
patch
|
blob
|
history
diff --git
a/sound/aoa/fabrics/snd-aoa-fabric-layout.c
b/sound/aoa/fabrics/snd-aoa-fabric-layout.c
index 409809600ddce1978da363f61ddd7e4ecb8c8266..fa4a69fcdc2795c65aa2851972dc35206f248aa4 100644
(file)
--- 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)
list_del(&ldev->list);
layouts_list_items--;
outnodev:
-
if (sound)
of_node_put(sound);
+ of_node_put(sound);
layout_device = NULL;
-
if (ldev)
kfree(ldev);
+ kfree(ldev);
return -ENODEV;
}