1
0
Fork 0

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>
wifi-calibration
Soren Brinkmann 2014-09-02 16:02:07 -07:00 committed by Mike Turquette
parent 16eeaec779
commit 88cebf5e09
1 changed files with 1 additions and 3 deletions

View File

@ -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;