summaryrefslogtreecommitdiffstats
path: root/arch/arm/plat-samsung/platformdata.c
diff options
context:
space:
mode:
authorMarkus Elfring <elfring@users.sourceforge.net>2017-10-04 09:33:52 +0200
committerKrzysztof Kozlowski <krzk@kernel.org>2017-10-04 21:09:19 +0200
commita3d1d8a77c2e7fee3dabc328955d04ec7a9d14ec (patch)
tree181094cb1a22fe4ac632b78729dfa2a0ee57c93f /arch/arm/plat-samsung/platformdata.c
parentARM: s3c64xx: Delete an unnecessary return statement in samsung_bl_set (diff)
downloadlinux-a3d1d8a77c2e7fee3dabc328955d04ec7a9d14ec.tar.xz
linux-a3d1d8a77c2e7fee3dabc328955d04ec7a9d14ec.zip
ARM: SAMSUNG: Remove printk for failed memory allocation
Omit an extra message for a memory allocation failure in adc.c and platformdata.c. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring <elfring@users.sourceforge.net> Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Diffstat (limited to 'arch/arm/plat-samsung/platformdata.c')
-rw-r--r--arch/arm/plat-samsung/platformdata.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/arm/plat-samsung/platformdata.c b/arch/arm/plat-samsung/platformdata.c
index b430e9946287..6cf52ee7eeec 100644
--- a/arch/arm/plat-samsung/platformdata.c
+++ b/arch/arm/plat-samsung/platformdata.c
@@ -29,10 +29,8 @@ void __init *s3c_set_platdata(void *pd, size_t pdsize,
}
npd = kmemdup(pd, pdsize, GFP_KERNEL);
- if (!npd) {
- printk(KERN_ERR "%s: cannot clone platform data\n", pdev->name);
+ if (!npd)
return NULL;
- }
pdev->dev.platform_data = npd;
return npd;