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: Catalina Mocanu <catalina.mocanu@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Catalina Mocanu 2014-09-24 14:27:36 -07:00 committed by Greg Kroah-Hartman
parent 8684ba72fa
commit 7557b6e172
2 changed files with 2 additions and 4 deletions

View File

@ -323,8 +323,7 @@ static unsigned int hdmi_compute_cts(unsigned int freq, unsigned long pixel_clk,
}
if (ratio == 100)
return cts;
else
return (cts * ratio) / 100;
return (cts * ratio) / 100;
}
static void hdmi_set_clk_regenerator(struct imx_hdmi *hdmi,

View File

@ -432,8 +432,7 @@ static long clk_tve_di_round_rate(struct clk_hw *hw, unsigned long rate,
return *prate / 4;
else if (div >= 2)
return *prate / 2;
else
return *prate;
return *prate;
}
static int clk_tve_di_set_rate(struct clk_hw *hw, unsigned long rate,