projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
77aea71
)
ASoC: SPEAr spdif_out: Remove redundant variable
author
Sachin Kamat
<
[email protected]
>
Thu, 19 Sep 2013 06:53:44 +0000
(12:23 +0530)
committer
Mark Brown
<
[email protected]
>
Thu, 19 Sep 2013 11:56:26 +0000
(12:56 +0100)
Return directly and remove the intermediate local variable.
Signed-off-by: Sachin Kamat <
[email protected]
>
Acked-by: Viresh Kumar <
[email protected]
>
Signed-off-by: Mark Brown <
[email protected]
>
sound/soc/spear/spdif_out.c
patch
|
blob
|
history
diff --git
a/sound/soc/spear/spdif_out.c
b/sound/soc/spear/spdif_out.c
index 70fc4d6875295cf3c1bf5f749e6b493b70924ec6..b6ef6f78dc781ad8a45c18d594b1cdc4945647f1 100644
(file)
--- a/
sound/soc/spear/spdif_out.c
+++ b/
sound/soc/spear/spdif_out.c
@@
-280,7
+280,6
@@
static int spdif_out_probe(struct platform_device *pdev)
struct spdif_out_dev *host;
struct spear_spdif_platform_data *pdata;
struct resource *res;
- int ret;
host = devm_kzalloc(&pdev->dev, sizeof(*host), GFP_KERNEL);
if (!host) {
@@
-307,9
+306,8
@@
static int spdif_out_probe(struct platform_device *pdev)
dev_set_drvdata(&pdev->dev, host);
- ret = devm_snd_soc_register_component(&pdev->dev, &spdif_out_component,
- &spdif_out_dai, 1);
- return ret;
+ return devm_snd_soc_register_component(&pdev->dev, &spdif_out_component,
+ &spdif_out_dai, 1);
}
#ifdef CONFIG_PM