Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1740750 > unrolled thread

[PATCH] clk: samsung: Delete an error message for a failed memory allocation in exynos_register_cpu_clock()

Started bySF Markus Elfring <elfring@users.sourceforge.net>
First post2017-09-27 16:00 +0200
Last post2017-09-27 17:00 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH] clk: samsung: Delete an error message for a failed memory  allocation in exynos_register_cpu_clock() SF Markus Elfring <elfring@users.sourceforge.net> - 2017-09-27 16:00 +0200
    Re: [PATCH] clk: samsung: Delete an error message for a failed  memory allocation in exynos_register_cpu_clock() Sylwester Nawrocki <s.nawrocki@samsung.com> - 2017-09-27 17:00 +0200

#1740750 — [PATCH] clk: samsung: Delete an error message for a failed memory allocation in exynos_register_cpu_clock()

FromSF Markus Elfring <elfring@users.sourceforge.net>
Date2017-09-27 16:00 +0200
Subject[PATCH] clk: samsung: Delete an error message for a failed memory allocation in exynos_register_cpu_clock()
Message-ID<uul2x-3HA-5@gated-at.bofh.it>
From: Markus Elfring <elfring@users.sourceforge.net>
Date: Wed, 27 Sep 2017 15:46:53 +0200

Omit an extra message for a memory allocation failure in this function.

This issue was detected by using the Coccinelle software.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
---
 drivers/clk/samsung/clk-cpu.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/clk/samsung/clk-cpu.c b/drivers/clk/samsung/clk-cpu.c
index 6686e8ba61f9..d2c99d8916b8 100644
--- a/drivers/clk/samsung/clk-cpu.c
+++ b/drivers/clk/samsung/clk-cpu.c
@@ -457,8 +457,6 @@ int __init exynos_register_cpu_clock(struct samsung_clk_provider *ctx,
 
 	cpuclk->cfg = kmemdup(cfg, sizeof(*cfg) * num_cfgs, GFP_KERNEL);
 	if (!cpuclk->cfg) {
-		pr_err("%s: could not allocate memory for cpuclk data\n",
-				__func__);
 		ret = -ENOMEM;
 		goto unregister_clk_nb;
 	}
-- 
2.14.1

[toc] | [next] | [standalone]


#1740807 — Re: [PATCH] clk: samsung: Delete an error message for a failed memory allocation in exynos_register_cpu_clock()

FromSylwester Nawrocki <s.nawrocki@samsung.com>
Date2017-09-27 17:00 +0200
SubjectRe: [PATCH] clk: samsung: Delete an error message for a failed memory allocation in exynos_register_cpu_clock()
Message-ID<uulYC-4wg-17@gated-at.bofh.it>
In reply to#1740750
On 09/27/2017 03:55 PM, SF Markus Elfring wrote:
> From: Markus Elfring <elfring@users.sourceforge.net>
> Date: Wed, 27 Sep 2017 15:46:53 +0200
> 
> Omit an extra message for a memory allocation failure in this function.
> 
> This issue was detected by using the Coccinelle software.
> 
> Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>

Applied with summary line shortened to 
"clk: samsung: Delete a memory allocation error message in clk-cpu.c",
thanks.

> ---
>  drivers/clk/samsung/clk-cpu.c | 2 --
>  1 file changed, 2 deletions(-)
> 
> diff --git a/drivers/clk/samsung/clk-cpu.c b/drivers/clk/samsung/clk-cpu.c
> index 6686e8ba61f9..d2c99d8916b8 100644
> --- a/drivers/clk/samsung/clk-cpu.c
> +++ b/drivers/clk/samsung/clk-cpu.c
> @@ -457,8 +457,6 @@ int __init exynos_register_cpu_clock(struct samsung_clk_provider *ctx,
>  
>  	cpuclk->cfg = kmemdup(cfg, sizeof(*cfg) * num_cfgs, GFP_KERNEL);
>  	if (!cpuclk->cfg) {
> -		pr_err("%s: could not allocate memory for cpuclk data\n",
> -				__func__);
>  		ret = -ENOMEM;
>  		goto unregister_clk_nb;
>  	}

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web