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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 15 Aug 2015 00:36:24 +0000 (17:36 -0700)
Fix style issue related to missing braces, detected by checkpatch.pl.

Signed-off-by: Cristina Opriceana <cristina.opriceana@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.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;