diff options
author | Cristina Opriceana <cristina.opriceana@gmail.com> | 2015-08-11 13:20:53 +0300 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2015-08-16 10:51:28 +0100 |
commit | a6d748e3ad927f6f2b93c9747d78da72c83141b6 (patch) | |
tree | c8084094254d23d7dbff3c977b3dc87b47a257a3 /drivers | |
parent | 8463f6fb78e0798817785e03860f8b1fc4e1b2e8 (diff) |
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: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers')
-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; |