提交 7557b6e1 编写于 作者: C Catalina Mocanu 提交者: Greg Kroah-Hartman

staging: imx-drm: Don't put an else right after a return

This fixes the following checkpatch.pl warning:
WARNING: else is not generally useful after a break or return.
Signed-off-by: NCatalina Mocanu <catalina.mocanu@gmail.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 8684ba72
...@@ -323,8 +323,7 @@ static unsigned int hdmi_compute_cts(unsigned int freq, unsigned long pixel_clk, ...@@ -323,8 +323,7 @@ static unsigned int hdmi_compute_cts(unsigned int freq, unsigned long pixel_clk,
} }
if (ratio == 100) if (ratio == 100)
return cts; return cts;
else return (cts * ratio) / 100;
return (cts * ratio) / 100;
} }
static void hdmi_set_clk_regenerator(struct imx_hdmi *hdmi, static void hdmi_set_clk_regenerator(struct imx_hdmi *hdmi,
......
...@@ -432,8 +432,7 @@ static long clk_tve_di_round_rate(struct clk_hw *hw, unsigned long rate, ...@@ -432,8 +432,7 @@ static long clk_tve_di_round_rate(struct clk_hw *hw, unsigned long rate,
return *prate / 4; return *prate / 4;
else if (div >= 2) else if (div >= 2)
return *prate / 2; return *prate / 2;
else return *prate;
return *prate;
} }
static int clk_tve_di_set_rate(struct clk_hw *hw, unsigned long rate, static int clk_tve_di_set_rate(struct clk_hw *hw, unsigned long rate,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册