From: Cristina Opriceana Date: Tue, 11 Aug 2015 10:20:53 +0000 (+0300) Subject: Staging: iio: trigger: Use braces on both branches of if statement X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c71e16ef7a2b4c5251cef74b1065fbb76bb14d09;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Greg Kroah-Hartman --- 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;