Commit de8cd467 authored by Markus Elfring's avatar Markus Elfring Committed by Stephen Boyd

clk: clk-u300: Delete error messages for failed memory allocations

Omit extra messages for a memory allocation failure in these
functions.

This issue was detected by using the Coccinelle software.
Signed-off-by: default avatarMarkus Elfring <elfring@users.sourceforge.net>
Signed-off-by: default avatarStephen Boyd <sboyd@codeaurora.org>
parent 1e28733e
...@@ -703,11 +703,9 @@ syscon_clk_register(struct device *dev, const char *name, ...@@ -703,11 +703,9 @@ syscon_clk_register(struct device *dev, const char *name,
int ret; int ret;
sclk = kzalloc(sizeof(struct clk_syscon), GFP_KERNEL); sclk = kzalloc(sizeof(struct clk_syscon), GFP_KERNEL);
if (!sclk) { if (!sclk)
pr_err("could not allocate syscon clock %s\n",
name);
return ERR_PTR(-ENOMEM); return ERR_PTR(-ENOMEM);
}
init.name = name; init.name = name;
init.ops = &syscon_clk_ops; init.ops = &syscon_clk_ops;
init.flags = flags; init.flags = flags;
...@@ -1124,11 +1122,9 @@ mclk_clk_register(struct device *dev, const char *name, ...@@ -1124,11 +1122,9 @@ mclk_clk_register(struct device *dev, const char *name,
int ret; int ret;
mclk = kzalloc(sizeof(struct clk_mclk), GFP_KERNEL); mclk = kzalloc(sizeof(struct clk_mclk), GFP_KERNEL);
if (!mclk) { if (!mclk)
pr_err("could not allocate MMC/SD clock %s\n",
name);
return ERR_PTR(-ENOMEM); return ERR_PTR(-ENOMEM);
}
init.name = "mclk"; init.name = "mclk";
init.ops = &mclk_ops; init.ops = &mclk_ops;
init.flags = 0; init.flags = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment