diff options
author | Markus Elfring <elfring@users.sourceforge.net> | 2017-09-25 04:10:51 -0400 |
---|---|---|
committer | Geert Uytterhoeven <geert+renesas@glider.be> | 2017-09-28 11:57:34 -0400 |
commit | 168bcbcb1c72a4753fc64ef384b46e330bfccd08 (patch) | |
tree | 2df54f99c80f230ef7fd8165e208dac26f1dd433 /drivers/clk/renesas/clk-mstp.c | |
parent | 8d46e28fb5081b49c5b24c814ad464fb99359d58 (diff) |
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>
Diffstat (limited to 'drivers/clk/renesas/clk-mstp.c')
-rw-r--r-- | drivers/clk/renesas/clk-mstp.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/clk/renesas/clk-mstp.c b/drivers/clk/renesas/clk-mstp.c index 500a9e4e03c4..c944cc421e30 100644 --- a/drivers/clk/renesas/clk-mstp.c +++ b/drivers/clk/renesas/clk-mstp.c | |||
@@ -156,10 +156,8 @@ static struct clk * __init cpg_mstp_clock_register(const char *name, | |||
156 | struct clk *clk; | 156 | struct clk *clk; |
157 | 157 | ||
158 | clock = kzalloc(sizeof(*clock), GFP_KERNEL); | 158 | clock = kzalloc(sizeof(*clock), GFP_KERNEL); |
159 | if (!clock) { | 159 | if (!clock) |
160 | pr_err("%s: failed to allocate MSTP clock.\n", __func__); | ||
161 | return ERR_PTR(-ENOMEM); | 160 | return ERR_PTR(-ENOMEM); |
162 | } | ||
163 | 161 | ||
164 | init.name = name; | 162 | init.name = name; |
165 | init.ops = &cpg_mstp_clock_ops; | 163 | init.ops = &cpg_mstp_clock_ops; |
@@ -196,7 +194,6 @@ static void __init cpg_mstp_clocks_init(struct device_node *np) | |||
196 | if (group == NULL || clks == NULL) { | 194 | if (group == NULL || clks == NULL) { |
197 | kfree(group); | 195 | kfree(group); |
198 | kfree(clks); | 196 | kfree(clks); |
199 | pr_err("%s: failed to allocate group\n", __func__); | ||
200 | return; | 197 | return; |
201 | } | 198 | } |
202 | 199 | ||