Re: [PATCH 1/5] selinux: drop return statement at end of void functions

From: Paul Moore
Date: Fri Feb 18 2022 - 10:44:34 EST


On Thu, Feb 17, 2022 at 9:22 AM Christian Göttsche
<cgzones@xxxxxxxxxxxxxx> wrote:
>
> Those return statements at the end of a void function are redundant.
>
> Reported by clang-tidy [readability-redundant-control-flow]
>
> Signed-off-by: Christian Göttsche <cgzones@xxxxxxxxxxxxxx>
> ---
> security/selinux/hooks.c | 2 --
> security/selinux/ss/conditional.c | 2 --
> security/selinux/ss/ebitmap.c | 1 -
> security/selinux/ss/mls.c | 1 -
> security/selinux/ss/services.c | 2 --
> 5 files changed, 8 deletions(-)

Merged into selinux/next, thanks.

--
paul-moore.com