diff options
author | Zou Wei <zou_wei@huawei.com> | 2020-11-03 19:32:14 +0800 |
---|---|---|
committer | Shawn Guo <shawnguo@kernel.org> | 2020-11-10 09:08:03 +0800 |
commit | f2bd43f1c97f0ef6612cde87aa941248a91c59c6 (patch) | |
tree | ea6ed97f84ae016d4abe90127a5a5c28d7315560 /drivers/clk/imx/clk-gate2.c | |
parent | 65188f07456d4a65b4a66069a701823878e098ff (diff) |
clk: imx: gate2: Remove unused variable ret
This patch fixes below warning reported by coccicheck:
./clk-gate2.c:57:5-8: Unneeded variable: "ret". Return "0" on line 68
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Zou Wei <zou_wei@huawei.com>
Reviewed-by: Stephen Boyd <sboyd@kernel.org>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
Diffstat (limited to 'drivers/clk/imx/clk-gate2.c')
-rw-r--r-- | drivers/clk/imx/clk-gate2.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/clk/imx/clk-gate2.c b/drivers/clk/imx/clk-gate2.c index 480a184207d5..f16c4019f402 100644 --- a/drivers/clk/imx/clk-gate2.c +++ b/drivers/clk/imx/clk-gate2.c @@ -54,7 +54,6 @@ static int clk_gate2_enable(struct clk_hw *hw) { struct clk_gate2 *gate = to_clk_gate2(hw); unsigned long flags; - int ret = 0; spin_lock_irqsave(gate->lock, flags); @@ -65,7 +64,7 @@ static int clk_gate2_enable(struct clk_hw *hw) out: spin_unlock_irqrestore(gate->lock, flags); - return ret; + return 0; } static void clk_gate2_disable(struct clk_hw *hw) |