summaryrefslogtreecommitdiffstats
path: root/drivers/clk/ti/divider.c
diff options
context:
space:
mode:
authorMarkus Elfring <elfring@users.sourceforge.net>2017-09-27 19:14:01 +0200
committerStephen Boyd <sboyd@codeaurora.org>2017-11-14 02:41:38 +0100
commitf80c8a29f94faf6d4a2a3b25d4473d62edbd7aab (patch)
tree21073ee05a2416d7e6f0860066412dac4f5d91f8 /drivers/clk/ti/divider.c
parentclk: mmp: Adjust checks for NULL pointers (diff)
downloadlinux-f80c8a29f94faf6d4a2a3b25d4473d62edbd7aab.tar.xz
linux-f80c8a29f94faf6d4a2a3b25d4473d62edbd7aab.zip
clk: ti: 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: Markus Elfring <elfring@users.sourceforge.net> Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Diffstat (limited to 'drivers/clk/ti/divider.c')
-rw-r--r--drivers/clk/ti/divider.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/clk/ti/divider.c b/drivers/clk/ti/divider.c
index 88f04a4cb890..77f93f6d2806 100644
--- a/drivers/clk/ti/divider.c
+++ b/drivers/clk/ti/divider.c
@@ -292,10 +292,8 @@ static struct clk *_register_divider(struct device *dev, const char *name,
/* allocate the divider */
div = kzalloc(sizeof(*div), GFP_KERNEL);
- if (!div) {
- pr_err("%s: could not allocate divider clk\n", __func__);
+ if (!div)
return ERR_PTR(-ENOMEM);
- }
init.name = name;
init.ops = &ti_clk_divider_ops;