diff options
author | Cristina Opriceana <cristina.opriceana@gmail.com> | 2015-08-11 13:20:53 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-08-15 03:36:24 +0300 |
commit | c71e16ef7a2b4c5251cef74b1065fbb76bb14d09 (patch) | |
tree | feb04a4c96dd523be51a8c126b7ca6e5e1ed959b /drivers/staging/iio | |
parent | 2f3403ac2cdd7d76c531c5b3cf16b05d7a554f18 (diff) | |
download | linux-c71e16ef7a2b4c5251cef74b1065fbb76bb14d09.tar.xz |
Staging: iio: trigger: Use braces on both branches of if statement
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>
Diffstat (limited to 'drivers/staging/iio')
-rw-r--r-- | drivers/staging/iio/trigger/iio-trig-periodic-rtc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/staging/iio/trigger/iio-trig-periodic-rtc.c b/drivers/staging/iio/trigger/iio-trig-periodic-rtc.c index a2a42c292211..2db885750fb8 100644 --- a/drivers/staging/iio/trigger/iio-trig-periodic-rtc.c +++ b/drivers/staging/iio/trigger/iio-trig-periodic-rtc.c @@ -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; |