clk: renesas: mstp: Delete error messages for failed memory allocations
The script "checkpatch.pl" pointed information out like the following. WARNING: Possible unnecessary 'out of memory' message Thus fix affected source code places. Signed-off-by: Markus Elfring <elfring@users.sourceforge.net> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
This commit is contained in:
parent
8d46e28fb5
commit
168bcbcb1c
1 changed files with 1 additions and 4 deletions
|
@ -156,10 +156,8 @@ static struct clk * __init cpg_mstp_clock_register(const char *name,
|
||||||
struct clk *clk;
|
struct clk *clk;
|
||||||
|
|
||||||
clock = kzalloc(sizeof(*clock), GFP_KERNEL);
|
clock = kzalloc(sizeof(*clock), GFP_KERNEL);
|
||||||
if (!clock) {
|
if (!clock)
|
||||||
pr_err("%s: failed to allocate MSTP clock.\n", __func__);
|
|
||||||
return ERR_PTR(-ENOMEM);
|
return ERR_PTR(-ENOMEM);
|
||||||
}
|
|
||||||
|
|
||||||
init.name = name;
|
init.name = name;
|
||||||
init.ops = &cpg_mstp_clock_ops;
|
init.ops = &cpg_mstp_clock_ops;
|
||||||
|
@ -196,7 +194,6 @@ static void __init cpg_mstp_clocks_init(struct device_node *np)
|
||||||
if (group == NULL || clks == NULL) {
|
if (group == NULL || clks == NULL) {
|
||||||
kfree(group);
|
kfree(group);
|
||||||
kfree(clks);
|
kfree(clks);
|
||||||
pr_err("%s: failed to allocate group\n", __func__);
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue