staging: greybus: timesync.c: Fixed WARNING for brace issue
authorChase Metzger <chasemetzger15@gmail.com>
Wed, 12 Oct 2016 19:50:14 +0000 (12:50 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 16 Oct 2016 08:27:25 +0000 (10:27 +0200)
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>
drivers/staging/greybus/timesync.c

index 2e68af7dea6d51ad8c3ae5657e0af9debaf4a285..e586627f4bbc01c2a562459db56aca3e5cf4254f 100644 (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;
 }