]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
clk: clk-mux: Delete an error message for a failed memory allocation
authorMarkus Elfring <elfring@users.sourceforge.net>
Tue, 26 Sep 2017 15:23:04 +0000 (17:23 +0200)
committerStephen Boyd <sboyd@codeaurora.org>
Tue, 14 Nov 2017 01:28:17 +0000 (17:28 -0800)
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>
drivers/clk/clk-mux.c

index 16a3d5717f4edc371da411168276371f0a656cac..1746dbf2f7ea341e04f2b0b857a23d47a0223d56 100644 (file)
@@ -135,10 +135,8 @@ struct clk_hw *clk_hw_register_mux_table(struct device *dev, const char *name,
 
        /* allocate the mux */
        mux = kzalloc(sizeof(struct clk_mux), GFP_KERNEL);
-       if (!mux) {
-               pr_err("%s: could not allocate mux clk\n", __func__);
+       if (!mux)
                return ERR_PTR(-ENOMEM);
-       }
 
        init.name = name;
        if (clk_mux_flags & CLK_MUX_READ_ONLY)