From 619afce1dc0a378f224338b8e721be167254bccb Mon Sep 17 00:00:00 2001 From: Jon Hunter Date: Fri, 14 Oct 2022 11:13:08 +0100 Subject: [PATCH] crypto: tegra: Fix unused variable warnings Fix the unused variable warnings in the Tegra SE driver by removing the unused 'err' variables. Bug 3820317 Change-Id: I74b9ea6f34c48aeb41d11e0d4c093d52ddf058b6 Signed-off-by: Jon Hunter Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2792538 Reviewed-by: Akhil R Reviewed-by: Laxman Dewangan Reviewed-by: svcacv GVS: Gerrit_Virtual_Submit --- drivers/crypto/tegra-se-nvhost.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/crypto/tegra-se-nvhost.c b/drivers/crypto/tegra-se-nvhost.c index 6bf22852..edb9a6b2 100644 --- a/drivers/crypto/tegra-se-nvhost.c +++ b/drivers/crypto/tegra-se-nvhost.c @@ -1788,7 +1788,6 @@ static u32 tegra_se_get_crypto_config(struct tegra_se_dev *se_dev, { u32 val = 0; unsigned long freq = 0; - int err = 0; switch (mode) { case SE_AES_OP_MODE_XTS: @@ -2073,7 +2072,6 @@ static int tegra_se_read_cmac_result(struct tegra_se_dev *se_dev, u8 *pdata, { u32 *result = (u32 *)pdata; u32 i; - int err = 0; for (i = 0; i < nbytes / 4; i++) { if (se_dev->chipdata->kac_type == SE_KAC_T23X) { @@ -2095,7 +2093,6 @@ static int tegra_se_read_cmac_result(struct tegra_se_dev *se_dev, u8 *pdata, static int tegra_se_clear_cmac_result(struct tegra_se_dev *se_dev, u32 nbytes) { u32 i; - int err = 0; for (i = 0; i < nbytes / 4; i++) { if (se_dev->chipdata->kac_type == SE_KAC_T23X) {