summaryrefslogtreecommitdiffstats
path: root/drivers/clk/zynq
diff options
context:
space:
mode:
authorSoren Brinkmann <soren.brinkmann@xilinx.com>2014-09-02 16:02:07 -0700
committerMike Turquette <mturquette@linaro.org>2014-09-09 12:18:20 -0700
commit88cebf5e09775b6ef024685729d41c3dd03a711d (patch)
treee4756378dcbe72476f398c8ad60e8f49c91c7ad1 /drivers/clk/zynq
parent16eeaec77922c1349e130a9541e83a023deaf11f (diff)
downloadop-kernel-dev-88cebf5e09775b6ef024685729d41c3dd03a711d.zip
op-kernel-dev-88cebf5e09775b6ef024685729d41c3dd03a711d.tar.gz
clk: zynq: Remove unnecessary OOM message
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>
Diffstat (limited to 'drivers/clk/zynq')
-rw-r--r--drivers/clk/zynq/pll.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/clk/zynq/pll.c b/drivers/clk/zynq/pll.c
index cec9759..00d72fb 100644
--- 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;
OpenPOWER on IntegriCloud