[PATCH] nvmem: sec-qfprom: Remove unused variable 'ret'
From: Komal Bajaj
Date: Wed Aug 16 2023 - 09:02:55 EST
This fixes:
drivers/nvmem/sec-qfprom.c:59:13: warning: unused variable 'ret' [-Wunused-variable]
Fixes: 9c7f2bce8a0e ("nvmem: sec-qfprom: Add Qualcomm secure QFPROM support")
Reported-by: kernel test robot <lkp@xxxxxxxxx>
Closes: https://lore.kernel.org/oe-kbuild-all/202308142248.QsUg82Wt-lkp@xxxxxxxxx/
Reported-by: Stephen Rothwell <sfr@xxxxxxxxxxxxxxxx>
Closes: https://lore.kernel.org/linux-next/20230815202508.0523ecce@xxxxxxxxxxxxxxxx/
Signed-off-by: Komal Bajaj <quic_kbajaj@xxxxxxxxxxx>
---
drivers/nvmem/sec-qfprom.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/nvmem/sec-qfprom.c b/drivers/nvmem/sec-qfprom.c
index 868a91c81197..e48c2dc0c44b 100644
--- a/drivers/nvmem/sec-qfprom.c
+++ b/drivers/nvmem/sec-qfprom.c
@@ -56,7 +56,6 @@ static int sec_qfprom_probe(struct platform_device *pdev)
struct nvmem_device *nvmem;
struct sec_qfprom *priv;
struct resource *res;
- int ret;
priv = devm_kzalloc(dev, sizeof(*priv), GFP_KERNEL);
if (!priv)
--
2.41.0