diff options
author | Markus Elfring <elfring@users.sourceforge.net> | 2017-09-26 11:23:04 -0400 |
---|---|---|
committer | Stephen Boyd <sboyd@codeaurora.org> | 2017-11-13 20:28:17 -0500 |
commit | 0b910402cfa0d3b3de666d68d107b30bf13e164e (patch) | |
tree | 237a4cd9160212a382af7ad37c998638d34b4dcc | |
parent | 2bd6bf03f4c1c59381d62c61d03f6cc3fe71f66e (diff) |
clk: clk-mux: Delete an error message for a failed memory allocation
Omit an extra message 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>
[sboyd@codeaurora.org: Cleanup commit text]
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
-rw-r--r-- | drivers/clk/clk-mux.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/clk/clk-mux.c b/drivers/clk/clk-mux.c index 16a3d5717f4e..1746dbf2f7ea 100644 --- a/drivers/clk/clk-mux.c +++ b/drivers/clk/clk-mux.c | |||
@@ -135,10 +135,8 @@ struct clk_hw *clk_hw_register_mux_table(struct device *dev, const char *name, | |||
135 | 135 | ||
136 | /* allocate the mux */ | 136 | /* allocate the mux */ |
137 | mux = kzalloc(sizeof(struct clk_mux), GFP_KERNEL); | 137 | mux = kzalloc(sizeof(struct clk_mux), GFP_KERNEL); |
138 | if (!mux) { | 138 | if (!mux) |
139 | pr_err("%s: could not allocate mux clk\n", __func__); | ||
140 | return ERR_PTR(-ENOMEM); | 139 | return ERR_PTR(-ENOMEM); |
141 | } | ||
142 | 140 | ||
143 | init.name = name; | 141 | init.name = name; |
144 | if (clk_mux_flags & CLK_MUX_READ_ONLY) | 142 | if (clk_mux_flags & CLK_MUX_READ_ONLY) |