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>
This commit is contained in:
Chase Metzger 2016-10-12 12:50:14 -07:00 committed by Greg Kroah-Hartman
parent cf3ba55dca
commit cb2ec2eff2
1 changed files with 3 additions and 3 deletions

View File

@ -807,11 +807,11 @@ static int gb_timesync_schedule(struct gb_timesync_svc *timesync_svc, int state)
return -EINVAL;
mutex_lock(&timesync_svc->mutex);
if (timesync_svc->state != GB_TIMESYNC_STATE_INVALID) {
if (timesync_svc->state != GB_TIMESYNC_STATE_INVALID)
gb_timesync_set_state_atomic(timesync_svc, state);
} else {
else
ret = -ENODEV;
}
mutex_unlock(&timesync_svc->mutex);
return ret;
}