提交 a6d748e3 编写于 作者: C Cristina Opriceana 提交者: Jonathan Cameron

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: NCristina Opriceana <cristina.opriceana@gmail.com>
Signed-off-by: NJonathan Cameron <jic23@kernel.org>
上级 8463f6fb
...@@ -74,8 +74,9 @@ static ssize_t iio_trig_periodic_write_freq(struct device *dev, ...@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册