counter: stm32: clean up indentation issue
authorColin Ian King <colin.king@canonical.com>
Wed, 25 Sep 2019 09:51:26 +0000 (10:51 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 7 Oct 2019 20:31:21 +0000 (21:31 +0100)
There is an if statement that is indented one level too deeply,
remove the extraneous tabs.

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: William Breathitt Gray <vilhelm.gray@gmail.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/counter/stm32-timer-cnt.c

index e425dd1..b61135b 100644 (file)
@@ -219,8 +219,8 @@ static ssize_t stm32_count_enable_write(struct counter_device *counter,
 
        if (enable) {
                regmap_read(priv->regmap, TIM_CR1, &cr1);
-                       if (!(cr1 & TIM_CR1_CEN))
-                               clk_enable(priv->clk);
+               if (!(cr1 & TIM_CR1_CEN))
+                       clk_enable(priv->clk);
 
                regmap_update_bits(priv->regmap, TIM_CR1, TIM_CR1_CEN,
                                   TIM_CR1_CEN);