mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 20:51:03 +02:00
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>
This commit is contained in:
@@ -54,7 +54,6 @@ static int clk_gate2_enable(struct clk_hw *hw)
|
|||||||
{
|
{
|
||||||
struct clk_gate2 *gate = to_clk_gate2(hw);
|
struct clk_gate2 *gate = to_clk_gate2(hw);
|
||||||
unsigned long flags;
|
unsigned long flags;
|
||||||
int ret = 0;
|
|
||||||
|
|
||||||
spin_lock_irqsave(gate->lock, flags);
|
spin_lock_irqsave(gate->lock, flags);
|
||||||
|
|
||||||
@@ -65,7 +64,7 @@ static int clk_gate2_enable(struct clk_hw *hw)
|
|||||||
out:
|
out:
|
||||||
spin_unlock_irqrestore(gate->lock, flags);
|
spin_unlock_irqrestore(gate->lock, flags);
|
||||||
|
|
||||||
return ret;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void clk_gate2_disable(struct clk_hw *hw)
|
static void clk_gate2_disable(struct clk_hw *hw)
|
||||||
|
Reference in New Issue
Block a user