diff options
author | Markus Elfring <elfring@users.sourceforge.net> | 2017-10-02 20:14:20 +0300 |
---|---|---|
committer | Krzysztof Kozlowski <krzk@kernel.org> | 2017-10-04 21:40:09 +0300 |
commit | b3b391f8e49cf71d70a95a55ad0808e1fdf3e130 (patch) | |
tree | 04d94536f9b91189076aad51efa4ee3247e5381c /arch/arm/mach-s3c24xx/iotiming-s3c2412.c | |
parent | 2bd6bf03f4c1c59381d62c61d03f6cc3fe71f66e (diff) | |
download | linux-b3b391f8e49cf71d70a95a55ad0808e1fdf3e130.tar.xz |
ARM: s3c24xx: Remove printk for failed memory allocation in iotiming get
Omit an extra message for a memory allocation failure in
s3c2410_iotiming_get() and s3c2412_iotiming_get().
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/mach-s3c24xx/iotiming-s3c2412.c')
-rw-r--r-- | arch/arm/mach-s3c24xx/iotiming-s3c2412.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/arm/mach-s3c24xx/iotiming-s3c2412.c b/arch/arm/mach-s3c24xx/iotiming-s3c2412.c index 28b13951de87..f09d5d5ea7ed 100644 --- a/arch/arm/mach-s3c24xx/iotiming-s3c2412.c +++ b/arch/arm/mach-s3c24xx/iotiming-s3c2412.c @@ -243,10 +243,8 @@ int s3c2412_iotiming_get(struct s3c_cpufreq_config *cfg, continue; bt = kzalloc(sizeof(struct s3c2412_iobank_timing), GFP_KERNEL); - if (!bt) { - printk(KERN_ERR "%s: no memory for bank\n", __func__); + if (!bt) return -ENOMEM; - } timings->bank[bank].io_2412 = bt; s3c2412_iotiming_getbank(cfg, bt, bank); |