lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAHUa44GMsDXL6OOc8nx4OH86-U5MizURW-2bpFnz_kp3+tKHNw@mail.gmail.com>
Date: Wed, 14 Jan 2026 11:59:12 +0100
From: Jens Wiklander <jens.wiklander@...aro.org>
To: Thorsten Blum <thorsten.blum@...ux.dev>
Cc: Sumit Garg <sumit.garg@...nel.org>, op-tee@...ts.trustedfirmware.org, 
	linux-kernel@...r.kernel.org
Subject: Re: [PATCH] tee: amdtee: Remove unused return variables

On Mon, Jan 5, 2026 at 1:50 PM Thorsten Blum <thorsten.blum@...ux.dev> wrote:
>
> In tee_params_to_amd_params() and amd_params_to_tee_params(), return 0
> directly and remove the unused return variables.
>
> Signed-off-by: Thorsten Blum <thorsten.blum@...ux.dev>
> ---
>  drivers/tee/amdtee/call.c | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)

Looks good. I'm picking up this.

Thanks,
Jens

>
> diff --git a/drivers/tee/amdtee/call.c b/drivers/tee/amdtee/call.c
> index 4c21b02be4af..460b0c9e511f 100644
> --- a/drivers/tee/amdtee/call.c
> +++ b/drivers/tee/amdtee/call.c
> @@ -15,7 +15,7 @@
>  static int tee_params_to_amd_params(struct tee_param *tee, u32 count,
>                                     struct tee_operation *amd)
>  {
> -       int i, ret = 0;
> +       int i;
>         u32 type;
>
>         if (!count)
> @@ -66,13 +66,13 @@ static int tee_params_to_amd_params(struct tee_param *tee, u32 count,
>                                  i, amd->params[i].val.b);
>                 }
>         }
> -       return ret;
> +       return 0;
>  }
>
>  static int amd_params_to_tee_params(struct tee_param *tee, u32 count,
>                                     struct tee_operation *amd)
>  {
> -       int i, ret = 0;
> +       int i;
>         u32 type;
>
>         if (!count)
> @@ -118,7 +118,7 @@ static int amd_params_to_tee_params(struct tee_param *tee, u32 count,
>                                  i, amd->params[i].val.b);
>                 }
>         }
> -       return ret;
> +       return 0;
>  }
>
>  static DEFINE_MUTEX(ta_refcount_mutex);
> --
> Thorsten Blum <thorsten.blum@...ux.dev>
> GPG: 1D60 735E 8AEF 3BE4 73B6  9D84 7336 78FD 8DFE EAD4
>

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ