From: Heinrich Schuchardt Date: Tue, 29 Sep 2020 19:52:12 +0000 (+0200) Subject: clk: kendryte: no need to check argument of free() X-Git-Url: http://git.dujemihanovic.xyz/login.html?a=commitdiff_plain;h=8bb7496ef9188493b548ceb03b741b8f6465c339;p=u-boot.git 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 Reviewed-by: Sean Anderson --- diff --git a/drivers/clk/kendryte/clk.c b/drivers/clk/kendryte/clk.c index bb196961af..4b959401a6 100644 --- a/drivers/clk/kendryte/clk.c +++ b/drivers/clk/kendryte/clk.c @@ -471,8 +471,7 @@ cleanup_gate: cleanup_div: free(div); cleanup_mux: - if (mux) - free(mux); + free(mux); return comp; }