]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
tee: amdtee: Remove unused return variables
authorThorsten Blum <thorsten.blum@linux.dev>
Mon, 5 Jan 2026 12:49:41 +0000 (13:49 +0100)
committerJens Wiklander <jens.wiklander@linaro.org>
Wed, 14 Jan 2026 09:20:51 +0000 (10:20 +0100)
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@linux.dev>
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
drivers/tee/amdtee/call.c

index 4c21b02be4af75e0483c25d22fadfe37173bbdd4..460b0c9e511fdb63761ef48e79edd4581eb5ff24 100644 (file)
@@ -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);