diff options
author | Markus Elfring <elfring@users.sourceforge.net> | 2017-04-18 04:50:53 -0400 |
---|---|---|
committer | Stephen Boyd <sboyd@codeaurora.org> | 2017-04-19 14:28:04 -0400 |
commit | 3cda284b77cba833baea9a0f5e256a34d249761f (patch) | |
tree | 1d9e8e5042053fda300773d386378e3bff76a7af /drivers/clk | |
parent | 781de7ade6c3ccc5efca9c635d64c1c07427a6d1 (diff) |
clk: hi3620: 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.
Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Diffstat (limited to 'drivers/clk')
-rw-r--r-- | drivers/clk/hisilicon/clk-hi3620.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/drivers/clk/hisilicon/clk-hi3620.c b/drivers/clk/hisilicon/clk-hi3620.c index f6dd971c9d3c..33a713ac8fe6 100644 --- a/drivers/clk/hisilicon/clk-hi3620.c +++ b/drivers/clk/hisilicon/clk-hi3620.c | |||
@@ -430,10 +430,8 @@ static struct clk *hisi_register_clk_mmc(struct hisi_mmc_clock *mmc_clk, | |||
430 | struct clk_init_data init; | 430 | struct clk_init_data init; |
431 | 431 | ||
432 | mclk = kzalloc(sizeof(*mclk), GFP_KERNEL); | 432 | mclk = kzalloc(sizeof(*mclk), GFP_KERNEL); |
433 | if (!mclk) { | 433 | if (!mclk) |
434 | pr_err("%s: fail to allocate mmc clk\n", __func__); | ||
435 | return ERR_PTR(-ENOMEM); | 434 | return ERR_PTR(-ENOMEM); |
436 | } | ||
437 | 435 | ||
438 | init.name = mmc_clk->name; | 436 | init.name = mmc_clk->name; |
439 | init.ops = &clk_mmc_ops; | 437 | init.ops = &clk_mmc_ops; |
@@ -483,10 +481,8 @@ static void __init hi3620_mmc_clk_init(struct device_node *node) | |||
483 | return; | 481 | return; |
484 | 482 | ||
485 | clk_data->clks = kcalloc(num, sizeof(*clk_data->clks), GFP_KERNEL); | 483 | clk_data->clks = kcalloc(num, sizeof(*clk_data->clks), GFP_KERNEL); |
486 | if (!clk_data->clks) { | 484 | if (!clk_data->clks) |
487 | pr_err("%s: fail to allocate mmc clk\n", __func__); | ||
488 | return; | 485 | return; |
489 | } | ||
490 | 486 | ||
491 | for (i = 0; i < num; i++) { | 487 | for (i = 0; i < num; i++) { |
492 | struct hisi_mmc_clock *mmc_clk = &hi3620_mmc_clks[i]; | 488 | struct hisi_mmc_clock *mmc_clk = &hi3620_mmc_clks[i]; |