KVM: arm64: Simplify handling of ARCH_WORKAROUND_2
[linux-2.6-microblaze.git] / drivers / clk / at91 / clk-system.c
index c4b3877..f83ec0d 100644 (file)
@@ -34,7 +34,7 @@ static inline bool clk_system_ready(struct regmap *regmap, int id)
 
        regmap_read(regmap, AT91_PMC_SR, &status);
 
-       return status & (1 << id) ? 1 : 0;
+       return !!(status & (1 << id));
 }
 
 static int clk_system_prepare(struct clk_hw *hw)
@@ -74,7 +74,7 @@ static int clk_system_is_prepared(struct clk_hw *hw)
 
        regmap_read(sys->regmap, AT91_PMC_SR, &status);
 
-       return status & (1 << sys->id) ? 1 : 0;
+       return !!(status & (1 << sys->id));
 }
 
 static const struct clk_ops system_ops = {