[PATCH] nvmem: sec-qfprom: Remove unused variable 'ret'

Komal Bajaj posted 1 patch 2 years, 4 months ago
drivers/nvmem/sec-qfprom.c | 1 -
1 file changed, 1 deletion(-)
[PATCH] nvmem: sec-qfprom: Remove unused variable 'ret'
Posted by Komal Bajaj 2 years, 4 months ago
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@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202308142248.QsUg82Wt-lkp@intel.com/
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Closes: https://lore.kernel.org/linux-next/20230815202508.0523ecce@canb.auug.org.au/
Signed-off-by: Komal Bajaj <quic_kbajaj@quicinc.com>
---
 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
Re: [PATCH] nvmem: sec-qfprom: Remove unused variable 'ret'
Posted by Srinivas Kandagatla 2 years, 3 months ago
On Wed, 16 Aug 2023 18:30:57 +0530, Komal Bajaj wrote:
> This fixes:
> drivers/nvmem/sec-qfprom.c:59:13: warning: unused variable 'ret' [-Wunused-variable]
> 
> 

Applied, thanks!

[1/1] nvmem: sec-qfprom: Remove unused variable 'ret'
      commit: 2b30c8e6c9ac18d57a6afa09cb95d5d2cb28ba5f

Best regards,
-- 
Srinivas Kandagatla <srinivas.kandagatla@linaro.org>