Skip to content

Commit f64d204

Browse files
JuliaLawalltmlind
authored andcommitted
arch/arm/mach-omap2/dpll3xxx.c: drop if around WARN_ON
Just use WARN_ON rather than an if containing only WARN_ON(1). A simplified version of the semantic patch that makes this transformation is as follows: (http://coccinelle.lip6.fr/) // <smpl> @@ expression e; @@ - if (e) WARN_ON(1); + WARN_ON(e); // </smpl> Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr> Signed-off-by: Tony Lindgren <tony@atomide.com>
1 parent 7eae44f commit f64d204

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

arch/arm/mach-omap2/dpll3xxx.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -485,8 +485,7 @@ int omap3_noncore_dpll_set_rate(struct clk_hw *hw, unsigned long rate,
485485
if (!cpu_is_omap44xx() && !cpu_is_omap3630()) {
486486
freqsel = _omap3_dpll_compute_freqsel(clk,
487487
dd->last_rounded_n);
488-
if (!freqsel)
489-
WARN_ON(1);
488+
WARN_ON(!freqsel);
490489
}
491490

492491
pr_debug("%s: %s: set rate: locking rate to %lu.\n",

0 commit comments

Comments
 (0)