mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-14 08:34:02 +08:00
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>
This commit is contained in:
parent
7a3aad90d3
commit
f80c8a29f9
@ -292,10 +292,8 @@ static struct clk *_register_divider(struct device *dev, const char *name,
|
|||||||
|
|
||||||
/* allocate the divider */
|
/* allocate the divider */
|
||||||
div = kzalloc(sizeof(*div), GFP_KERNEL);
|
div = kzalloc(sizeof(*div), GFP_KERNEL);
|
||||||
if (!div) {
|
if (!div)
|
||||||
pr_err("%s: could not allocate divider clk\n", __func__);
|
|
||||||
return ERR_PTR(-ENOMEM);
|
return ERR_PTR(-ENOMEM);
|
||||||
}
|
|
||||||
|
|
||||||
init.name = name;
|
init.name = name;
|
||||||
init.ops = &ti_clk_divider_ops;
|
init.ops = &ti_clk_divider_ops;
|
||||||
|
@ -108,10 +108,8 @@ static struct clk *_register_mux(struct device *dev, const char *name,
|
|||||||
|
|
||||||
/* allocate the mux */
|
/* allocate the mux */
|
||||||
mux = kzalloc(sizeof(*mux), GFP_KERNEL);
|
mux = kzalloc(sizeof(*mux), GFP_KERNEL);
|
||||||
if (!mux) {
|
if (!mux)
|
||||||
pr_err("%s: could not allocate mux clk\n", __func__);
|
|
||||||
return ERR_PTR(-ENOMEM);
|
return ERR_PTR(-ENOMEM);
|
||||||
}
|
|
||||||
|
|
||||||
init.name = name;
|
init.name = name;
|
||||||
init.ops = &ti_clk_mux_ops;
|
init.ops = &ti_clk_mux_ops;
|
||||||
|
Loading…
Reference in New Issue
Block a user