提交 88cebf5e 编写于 作者: S Soren Brinkmann 提交者: Mike Turquette

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: NSoren Brinkmann <soren.brinkmann@xilinx.com>
Signed-off-by: NMike Turquette <mturquette@linaro.org>
上级 16eeaec7
...@@ -211,10 +211,8 @@ struct clk *clk_register_zynq_pll(const char *name, const char *parent, ...@@ -211,10 +211,8 @@ struct clk *clk_register_zynq_pll(const char *name, const char *parent,
}; };
pll = kmalloc(sizeof(*pll), GFP_KERNEL); pll = kmalloc(sizeof(*pll), GFP_KERNEL);
if (!pll) { if (!pll)
pr_err("%s: Could not allocate Zynq PLL clk.\n", __func__);
return ERR_PTR(-ENOMEM); return ERR_PTR(-ENOMEM);
}
/* Populate the struct */ /* Populate the struct */
pll->hw.init = &initd; pll->hw.init = &initd;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册