projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4edec9e
)
ARM: pxa: ssp: remove unnecessary warning on kzalloc() failure
author
Daniel Mack
<zonque@gmail.com>
Mon, 12 Aug 2013 08:37:14 +0000
(10:37 +0200)
committer
Mark Brown
<broonie@linaro.org>
Wed, 14 Aug 2013 18:54:12 +0000
(19:54 +0100)
The memory subsystem will already complain loudly enough in such cases.
Signed-off-by: Daniel Mack <zonque@gmail.com>
Acked-by: Haojian Zhuang <haojian.zhuang@gmail.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
arch/arm/plat-pxa/ssp.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/arm/plat-pxa/ssp.c
b/arch/arm/plat-pxa/ssp.c
index 8e11e96eab5ef6dbb07f79c3dd747252401d5a52..f746b6a388b8ed9c0d7acdc91b7f5cbbe2e2678f 100644
(file)
--- a/
arch/arm/plat-pxa/ssp.c
+++ b/
arch/arm/plat-pxa/ssp.c
@@
-80,10
+80,9
@@
static int pxa_ssp_probe(struct platform_device *pdev)
int ret = 0;
ssp = kzalloc(sizeof(struct ssp_device), GFP_KERNEL);
- if (ssp == NULL) {
- dev_err(&pdev->dev, "failed to allocate memory");
+ if (ssp == NULL)
return -ENOMEM;
- }
+
ssp->pdev = pdev;
ssp->clk = clk_get(&pdev->dev, NULL);