Re: [PATCH] gpio/gpiolib.c:Fixing style issues in gpiolib.c

From: Linus Walleij
Date: Wed Dec 07 2016 - 10:07:49 EST


On Mon, Dec 5, 2016 at 12:45 PM, Mukesh Kaushik <mukesh.k4@xxxxxxxxxxx> wrote:

> Fixing the following checkpatch.pl error:
>
> ERROR: else should follow close brace '}'
> + }
> + else if (test_bit(FLAG_OPEN_SOURCE, &desc->flags)) {
>
> ERROR: space prohibited after that open parenthesis '('
> + if ( !desc->gdev->chip ) { \
>
> ERROR: space prohibited before that close parenthesis ')'
> + if ( !desc->gdev->chip ) { \
>
> and following warnings :
>
> WARNING: Prefer 'unsigned int' to bare use of 'unsigned'
>
> WARNING: else is not generally useful after a break or return
> + break;
> + else
>
> Change-Id: I9164832686efb8db1f6d365f89f278e998104f81

Gerrit? We don't need this.

> Signed-off-by: Mukesh Kaushik <mukesh.k4@xxxxxxxxxxx>

This does not apply to my devel branch.

Please rebase on devel or v4.9 final whatever comes first
and resend.

Yours,
Linus Walleij