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>
This commit is contained in:
Cristina Opriceana 2015-08-11 13:20:53 +03:00 committed by Jonathan Cameron
parent 8463f6fb78
commit a6d748e3ad

View 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) if (ret == 0 && trig_info->state && trig_info->frequency == 0)
ret = rtc_irq_set_state(trig_info->rtc, ret = rtc_irq_set_state(trig_info->rtc,
&trig_info->task, 1); &trig_info->task, 1);
} else } else {
ret = rtc_irq_set_state(trig_info->rtc, &trig_info->task, 0); ret = rtc_irq_set_state(trig_info->rtc, &trig_info->task, 0);
}
if (ret) if (ret)
goto error_ret; goto error_ret;