summaryrefslogtreecommitdiffstats
path: root/drivers/clk
diff options
context:
space:
mode:
authorMarkus Elfring <elfring@users.sourceforge.net>2017-09-26 16:54:20 +0200
committerStephen Boyd <sboyd@codeaurora.org>2017-11-13 17:44:42 -0800
commit98c58f7d176a025365219bf51079a004cb70cc7c (patch)
treef811f1d15f3428f71067b4b9f52f8a1a885afdc4 /drivers/clk
parent658af6cbd4e4f62395d8dad7f76871de8159ee92 (diff)
downloadop-kernel-dev-98c58f7d176a025365219bf51079a004cb70cc7c.zip
op-kernel-dev-98c58f7d176a025365219bf51079a004cb70cc7c.tar.gz
clk: kona-setup: Delete error messages for failed memory allocations
Omit extra messages for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring <elfring@users.sourceforge.net> Acked-by: Scott Branden <scott.branden@broadcom.com> Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Diffstat (limited to 'drivers/clk')
-rw-r--r--drivers/clk/bcm/clk-kona-setup.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/clk/bcm/clk-kona-setup.c b/drivers/clk/bcm/clk-kona-setup.c
index c37a7f0..281f432 100644
--- a/drivers/clk/bcm/clk-kona-setup.c
+++ b/drivers/clk/bcm/clk-kona-setup.c
@@ -579,18 +579,13 @@ static u32 *parent_process(const char *clocks[],
*/
parent_names = kmalloc_array(parent_count, sizeof(*parent_names),
GFP_KERNEL);
- if (!parent_names) {
- pr_err("%s: error allocating %u parent names\n", __func__,
- parent_count);
+ if (!parent_names)
return ERR_PTR(-ENOMEM);
- }
/* There is at least one parent, so allocate a selector array */
parent_sel = kmalloc_array(parent_count, sizeof(*parent_sel),
GFP_KERNEL);
if (!parent_sel) {
- pr_err("%s: error allocating %u parent selectors\n", __func__,
- parent_count);
kfree(parent_names);
return ERR_PTR(-ENOMEM);
OpenPOWER on IntegriCloud