From nobody Sat Feb 7 20:39:36 2026 Received: from out-179.mta1.migadu.com (out-179.mta1.migadu.com [95.215.58.179]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7151D2F616C for ; Mon, 5 Jan 2026 12:50:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.179 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767617420; cv=none; b=Ymxf/oyEZYt5CbGvbCqMym/NONooxxODmWqsRQiaTn0+v3ZHm/gGSTlM1NTv98A7WCSH6/bgGTP/qLq70OiQ/0w1yO9fFIvx8lILuUizy0/ZfX3UDBXZL0grpNrDO/fVT2uKNVXiyZkMXCVP6KqV0PFwgmXsKAWMiUwAV37tNzU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767617420; c=relaxed/simple; bh=ONTOXmDoY1BLdJVFpiEba/X8Ns42QW2hYwXux13h8JA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=vDNhN0u+k1i3iDpTEHC4px5J97VDcQr3fqF6Lvpwk362f2JxT/qHo/CLiIcQD7gU31Gn4aUxAQ823EMCXCuFcPlxdDRMrMJ25ZlBE/AUwU+t2pH13w6KUiUb/8ZGOM3Zb62oolRvLFW0ljHUMP6+l/or43qXU/4NRFd7jgSjLzA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=LEl9jN85; arc=none smtp.client-ip=95.215.58.179 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="LEl9jN85" X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1767617416; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=lHT9J4DhsH2RX69SgA6OV023LvbhAbhKj1QDNOw06eg=; b=LEl9jN85ye8+ECSDRsGfj5iZ+/C1AAGNvLeigztutbHIFYvIK4MsfV0+4Eo+h4+66+Vsay NFpJCtSwMVN1QUVNOaFYyxPfIzuORhxhaAZdrc0M5mKYTRHCdTfZvDh9QKvkaLnx5IGnEX lvAAEo6MoULwxbIR/cmJB91JfEEvn0A= From: Thorsten Blum To: Jens Wiklander , Sumit Garg Cc: Thorsten Blum , op-tee@lists.trustedfirmware.org, linux-kernel@vger.kernel.org Subject: [PATCH] tee: amdtee: Remove unused return variables Date: Mon, 5 Jan 2026 13:49:41 +0100 Message-ID: <20260105124944.47817-2-thorsten.blum@linux.dev> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Migadu-Flow: FLOW_OUT Content-Type: text/plain; charset="utf-8" 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 --- drivers/tee/amdtee/call.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 =3D 0; + int i; u32 type; =20 if (!count) @@ -66,13 +66,13 @@ static int tee_params_to_amd_params(struct tee_param *t= ee, u32 count, i, amd->params[i].val.b); } } - return ret; + return 0; } =20 static int amd_params_to_tee_params(struct tee_param *tee, u32 count, struct tee_operation *amd) { - int i, ret =3D 0; + int i; u32 type; =20 if (!count) @@ -118,7 +118,7 @@ static int amd_params_to_tee_params(struct tee_param *t= ee, u32 count, i, amd->params[i].val.b); } } - return ret; + return 0; } =20 static DEFINE_MUTEX(ta_refcount_mutex); --=20 Thorsten Blum GPG: 1D60 735E 8AEF 3BE4 73B6 9D84 7336 78FD 8DFE EAD4