Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging: greybus: timesync.c: Fixed WARNING for brace issue

Removed a checkpatch warning for braces on single argument if and else
statement.

Signed-off-by: Chase Metzger <chasemetzger15@gmail.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Chase Metzger and committed by
Greg Kroah-Hartman
cb2ec2ef cf3ba55d

+3 -3
+3 -3
drivers/staging/greybus/timesync.c
··· 807 807 return -EINVAL; 808 808 809 809 mutex_lock(&timesync_svc->mutex); 810 - if (timesync_svc->state != GB_TIMESYNC_STATE_INVALID) { 810 + if (timesync_svc->state != GB_TIMESYNC_STATE_INVALID) 811 811 gb_timesync_set_state_atomic(timesync_svc, state); 812 - } else { 812 + else 813 813 ret = -ENODEV; 814 - } 814 + 815 815 mutex_unlock(&timesync_svc->mutex); 816 816 return ret; 817 817 }