Staging: iio: trigger: Use braces on both branches of if statement
authorCristina Opriceana <cristina.opriceana@gmail.com>
Tue, 11 Aug 2015 10:20:53 +0000 (13:20 +0300)
committerJonathan Cameron <jic23@kernel.org>
Sun, 16 Aug 2015 09:51:28 +0000 (10:51 +0100)
Fix style issue related to missing braces, detected by checkpatch.pl.

Signed-off-by: Cristina Opriceana <cristina.opriceana@gmail.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/staging/iio/trigger/iio-trig-periodic-rtc.c

index a2a42c2922114b3fec8761614990d283d504b1bd..2db885750fb84384653a54ab97089c835f479dca 100644 (file)
@@ -74,8 +74,9 @@ static ssize_t iio_trig_periodic_write_freq(struct device *dev,
                if (ret == 0 && trig_info->state && trig_info->frequency == 0)
                        ret = rtc_irq_set_state(trig_info->rtc,
                                                &trig_info->task, 1);
-       } else
+       } else {
                ret = rtc_irq_set_state(trig_info->rtc, &trig_info->task, 0);
+       }
        if (ret)
                goto error_ret;
 
This page took 0.024544 seconds and 5 git commands to generate.