Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1500027

Re: [PATCH] staging: greybus: timesync.c: Fixed WARNING for brace issue

From Viresh Kumar <viresh.kumar@linaro.org>
Newsgroups linux.kernel
Subject Re: [PATCH] staging: greybus: timesync.c: Fixed WARNING for brace issue
Date 2016-10-13 06:50 +0200
Message-ID <srG7T-6YL-3@gated-at.bofh.it> (permalink)
References <srxQZ-w2-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Thu, Oct 13, 2016 at 1:20 AM, Chase Metzger <chasemetzger15@gmail.com> wrote:
> Removed a checkpatch warning for braces on single argument if and else
> statement.
>
> Signed-off-by: Chase Metzger <chasemetzger15@gmail.com>
> ---
>  drivers/staging/greybus/timesync.c | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/staging/greybus/timesync.c b/drivers/staging/greybus/timesync.c
> index 2e68af7..e586627 100644
> --- a/drivers/staging/greybus/timesync.c
> +++ b/drivers/staging/greybus/timesync.c
> @@ -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;
>  }

Acked-by: Viresh Kumar <viresh.kumar@linaro.org>

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH] staging: greybus: timesync.c: Fixed WARNING for brace issue Chase Metzger <chasemetzger15@gmail.com> - 2016-10-12 22:00 +0200
  Re: [PATCH] staging: greybus: timesync.c: Fixed WARNING for brace issue Viresh Kumar <viresh.kumar@linaro.org> - 2016-10-13 06:50 +0200

csiph-web