projects
/
platform
/
kernel
/
linux-exynos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
16eeaec
)
clk: zynq: Remove unnecessary OOM message
author
Soren Brinkmann
<soren.brinkmann@xilinx.com>
Tue, 2 Sep 2014 23:02:07 +0000
(16:02 -0700)
committer
Mike Turquette
<mturquette@linaro.org>
Tue, 9 Sep 2014 19:18:20 +0000
(12:18 -0700)
As checkpatch suggests:
WARNING: Possible unnecessary 'out of memory' message,
remove an error message after failing kmalloc() from the PLL driver.
Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
drivers/clk/zynq/pll.c
patch
|
blob
|
history
diff --git
a/drivers/clk/zynq/pll.c
b/drivers/clk/zynq/pll.c
index
cec9759
..
00d72fb
100644
(file)
--- a/
drivers/clk/zynq/pll.c
+++ b/
drivers/clk/zynq/pll.c
@@
-211,10
+211,8
@@
struct clk *clk_register_zynq_pll(const char *name, const char *parent,
};
pll = kmalloc(sizeof(*pll), GFP_KERNEL);
- if (!pll) {
- pr_err("%s: Could not allocate Zynq PLL clk.\n", __func__);
+ if (!pll)
return ERR_PTR(-ENOMEM);
- }
/* Populate the struct */
pll->hw.init = &initd;