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


Groups > linux.kernel > #1598145

Re: [PATCH 1/3] audit: auditfilter: remove unnecessary semicolon

From Paul Moore <paul@paul-moore.com>
Newsgroups linux.kernel
Subject Re: [PATCH 1/3] audit: auditfilter: remove unnecessary semicolon
Date 2017-03-10 23:30 +0100
Message-ID <tjBcS-1S7-13@gated-at.bofh.it> (permalink)
References <te4rg-3IU-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Thu, Feb 23, 2017 at 11:24 AM, Nicholas Mc Guire <der.herr@hofr.at> wrote:
> The excess ; after the closing parenthesis is just code-noise it has no
> and can be removed.
>
> Signed-off-by: Nicholas Mc Guire <der.herr@hofr.at>
> ---
> Problem located by coccinelle
> ./kernel/auditfilter.c:341:2-3: Unneeded semicolon
> ./kernel/auditfilter.c:415:2-3: Unneeded semicolon
>
> Patch was compiletested with: x86_64_defconfig (implies CONFIG_AUDIT )
>
> Patch is against 4.10.0 (localversion-next is next-20170222)
>
>  kernel/auditfilter.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)

Merged.

> diff --git a/kernel/auditfilter.c b/kernel/auditfilter.c
> index 880519d..239d11c 100644
> --- a/kernel/auditfilter.c
> +++ b/kernel/auditfilter.c
> @@ -338,7 +338,7 @@ static int audit_field_valid(struct audit_entry *entry, struct audit_field *f)
>                     entry->rule.listnr != AUDIT_FILTER_USER)
>                         return -EINVAL;
>                 break;
> -       };
> +       }
>
>         switch(f->type) {
>         default:
> @@ -412,7 +412,7 @@ static int audit_field_valid(struct audit_entry *entry, struct audit_field *f)
>                 if (entry->rule.listnr != AUDIT_FILTER_EXIT)
>                         return -EINVAL;
>                 break;
> -       };
> +       }
>         return 0;
>  }
>
> --
> 2.1.4
>



-- 
paul moore
www.paul-moore.com

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

Re: [PATCH 1/3] audit: auditfilter: remove unnecessary semicolon Paul Moore <paul@paul-moore.com> - 2017-03-10 23:30 +0100

csiph-web