diff options
author | Markus Elfring <elfring@users.sourceforge.net> | 2017-04-20 04:04:00 -0400 |
---|---|---|
committer | Stephen Boyd <sboyd@codeaurora.org> | 2017-04-21 22:47:14 -0400 |
commit | 24f8186eb8d69a3a0d856ce59fb4f19ae23ff23a (patch) | |
tree | 4ebb61c86082bfe7af4b5bdd128ecb94d82595a5 | |
parent | add3151133b9ae3bcfd97eab04d9a50b6606453c (diff) |
clk: nomadik: Delete error messages for a failed memory allocation in two functions
The script "checkpatch.pl" pointed information out like the following.
WARNING: Possible unnecessary 'out of memory' message
Thus remove such statements here.
Link: http://events.linuxfoundation.org/sites/events/files/slides/LCJ16-Refactor_Strings-WSang_0.pdf
Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
-rw-r--r-- | drivers/clk/clk-nomadik.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/drivers/clk/clk-nomadik.c b/drivers/clk/clk-nomadik.c index 8d57ab8d6ed8..13ad6d1e5090 100644 --- a/drivers/clk/clk-nomadik.c +++ b/drivers/clk/clk-nomadik.c | |||
@@ -267,10 +267,8 @@ pll_clk_register(struct device *dev, const char *name, | |||
267 | } | 267 | } |
268 | 268 | ||
269 | pll = kzalloc(sizeof(*pll), GFP_KERNEL); | 269 | pll = kzalloc(sizeof(*pll), GFP_KERNEL); |
270 | if (!pll) { | 270 | if (!pll) |
271 | pr_err("%s: could not allocate PLL clk\n", __func__); | ||
272 | return ERR_PTR(-ENOMEM); | 271 | return ERR_PTR(-ENOMEM); |
273 | } | ||
274 | 272 | ||
275 | init.name = name; | 273 | init.name = name; |
276 | init.ops = &pll_clk_ops; | 274 | init.ops = &pll_clk_ops; |
@@ -356,11 +354,9 @@ src_clk_register(struct device *dev, const char *name, | |||
356 | struct clk_init_data init; | 354 | struct clk_init_data init; |
357 | 355 | ||
358 | sclk = kzalloc(sizeof(*sclk), GFP_KERNEL); | 356 | sclk = kzalloc(sizeof(*sclk), GFP_KERNEL); |
359 | if (!sclk) { | 357 | if (!sclk) |
360 | pr_err("could not allocate SRC clock %s\n", | ||
361 | name); | ||
362 | return ERR_PTR(-ENOMEM); | 358 | return ERR_PTR(-ENOMEM); |
363 | } | 359 | |
364 | init.name = name; | 360 | init.name = name; |
365 | init.ops = &src_clk_ops; | 361 | init.ops = &src_clk_ops; |
366 | /* Do not force-disable the static SDRAM controller */ | 362 | /* Do not force-disable the static SDRAM controller */ |