clk: at91: replace conditional operator with double logical not
[linux-2.6-microblaze.git] / drivers / clk / at91 / clk-main.c
index 37c2266..5c83e89 100644 (file)
@@ -175,7 +175,7 @@ static bool clk_main_rc_osc_ready(struct regmap *regmap)
 
        regmap_read(regmap, AT91_PMC_SR, &status);
 
-       return status & AT91_PMC_MOSCRCS;
+       return !!(status & AT91_PMC_MOSCRCS);
 }
 
 static int clk_main_rc_osc_prepare(struct clk_hw *hw)
@@ -336,7 +336,7 @@ static int clk_rm9200_main_is_prepared(struct clk_hw *hw)
 
        regmap_read(clkmain->regmap, AT91_CKGR_MCFR, &status);
 
-       return status & AT91_PMC_MAINRDY ? 1 : 0;
+       return !!(status & AT91_PMC_MAINRDY);
 }
 
 static unsigned long clk_rm9200_main_recalc_rate(struct clk_hw *hw,
@@ -398,7 +398,7 @@ static inline bool clk_sam9x5_main_ready(struct regmap *regmap)
 
        regmap_read(regmap, AT91_PMC_SR, &status);
 
-       return status & AT91_PMC_MOSCSELS ? 1 : 0;
+       return !!(status & AT91_PMC_MOSCSELS);
 }
 
 static int clk_sam9x5_main_prepare(struct clk_hw *hw)