aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/clk/spear/clk-frac-synth.c
diff options
context:
space:
mode:
authorMarkus Elfring <elfring@users.sourceforge.net>2017-09-27 18:00:21 +0200
committerStephen Boyd <sboyd@codeaurora.org>2017-11-13 17:41:53 -0800
commit63b1a5d75090ac41369d06d609d3268dbf16d41f (patch)
tree4151559357c221d042fe3a3d74f84344b2b73313 /drivers/clk/spear/clk-frac-synth.c
parentclk: ti: Delete error messages for failed memory allocations (diff)
downloadlinux-dev-63b1a5d75090ac41369d06d609d3268dbf16d41f.tar.xz
linux-dev-63b1a5d75090ac41369d06d609d3268dbf16d41f.zip
clk: spear: 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> Acked-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Diffstat (limited to 'drivers/clk/spear/clk-frac-synth.c')
-rw-r--r--drivers/clk/spear/clk-frac-synth.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/clk/spear/clk-frac-synth.c b/drivers/clk/spear/clk-frac-synth.c
index 58d678b5b40a..c48f3ed2d570 100644
--- a/drivers/clk/spear/clk-frac-synth.c
+++ b/drivers/clk/spear/clk-frac-synth.c
@@ -136,10 +136,8 @@ struct clk *clk_register_frac(const char *name, const char *parent_name,
}
frac = kzalloc(sizeof(*frac), GFP_KERNEL);
- if (!frac) {
- pr_err("could not allocate frac clk\n");
+ if (!frac)
return ERR_PTR(-ENOMEM);
- }
/* struct clk_frac assignments */
frac->reg = reg;