summaryrefslogtreecommitdiff
path: root/drivers/clk/ux500/clk-sysctrl.c
diff options
context:
space:
mode:
authorMarkus Elfring <elfring@users.sourceforge.net>2017-09-27 20:23:58 +0200
committerStephen Boyd <sboyd@codeaurora.org>2017-11-13 17:42:06 -0800
commit7a294dc6c85d6cea181055c5412bb44a499e3816 (patch)
tree317025ba35f38b90f5950ab98d69a8331353206c /drivers/clk/ux500/clk-sysctrl.c
parent63b1a5d75090ac41369d06d609d3268dbf16d41f (diff)
downloadlwn-7a294dc6c85d6cea181055c5412bb44a499e3816.tar.gz
lwn-7a294dc6c85d6cea181055c5412bb44a499e3816.zip
clk: ux500: 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: Ulf Hansson <ulf.hansson@linaro.org> Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Diffstat (limited to 'drivers/clk/ux500/clk-sysctrl.c')
-rw-r--r--drivers/clk/ux500/clk-sysctrl.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/clk/ux500/clk-sysctrl.c b/drivers/clk/ux500/clk-sysctrl.c
index 8a4e93ce1e42..e0a834c08a04 100644
--- a/drivers/clk/ux500/clk-sysctrl.c
+++ b/drivers/clk/ux500/clk-sysctrl.c
@@ -140,10 +140,8 @@ static struct clk *clk_reg_sysctrl(struct device *dev,
}
clk = devm_kzalloc(dev, sizeof(struct clk_sysctrl), GFP_KERNEL);
- if (!clk) {
- dev_err(dev, "clk_sysctrl: could not allocate clk\n");
+ if (!clk)
return ERR_PTR(-ENOMEM);
- }
/* set main clock registers */
clk->reg_sel[0] = reg_sel[0];