PM / clk: Remove error message on out-of-memory condition
authorGeert Uytterhoeven <geert+renesas@glider.be>
Mon, 27 May 2019 12:27:51 +0000 (14:27 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 28 May 2019 17:40:21 +0000 (19:40 +0200)
There is no need to print an error message if kstrdup() fails, as the
memory allocation core already takes care of that.

Note that commit 59d84ca8c46a93ad ("PM / OPP / clk: Remove unnecessary
OOM message") already removed similar error messages, but this one was
forgotten.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/base/power/clock_ops.c

index 3e84e3085d43a67afd67c3e311eb9ca050dd2a3f..ced6863a16a53a701c634f05b57a669dcc9be18a 100644 (file)
@@ -93,8 +93,6 @@ static int __pm_clk_add(struct device *dev, const char *con_id,
        if (con_id) {
                ce->con_id = kstrdup(con_id, GFP_KERNEL);
                if (!ce->con_id) {
-                       dev_err(dev,
-                               "Not enough memory for clock connection ID.\n");
                        kfree(ce);
                        return -ENOMEM;
                }