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>
This commit is contained in:
parent
2f3403ac2c
commit
c71e16ef7a
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user