commit | b213ffc40f50991d110f5fad3bb821221842ef07 | [log] [tgz] |
---|---|---|
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | Tue Sep 29 21:52:12 2020 +0200 |
committer | Andes <uboot@andestech.com> | Mon Oct 26 09:27:13 2020 +0800 |
tree | 6244e07138c33bd0180d24c610c3477bb194ed4f | |
parent | 8e0d8405ff3c403178bae3f2377f722206678e7e [diff] |
clk: kendryte: no need to check argument of free() free() checks if its argument is NULL. No need to check it twice. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Reviewed-by: Sean Anderson <seanga2@gmail.com>
diff --git a/drivers/clk/kendryte/clk.c b/drivers/clk/kendryte/clk.c index bb19696..4b95940 100644 --- a/drivers/clk/kendryte/clk.c +++ b/drivers/clk/kendryte/clk.c
@@ -471,8 +471,7 @@ cleanup_div: free(div); cleanup_mux: - if (mux) - free(mux); + free(mux); return comp; }