Skip to contentSkip to conversation

nvmem: lpc18xx_eeprom: remove an unused variable

PATCH In review Arnd Bergmann 2 participants 3 messages Oct 2, 2018

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 nvmem: lpc18xx_eeprom: remove an unused variable

drivers/nvmem/lpc18xx_eeprom.c: In function 'lpc18xx_eeprom_remove':
drivers/nvmem/lpc18xx_eeprom.c:258:6: error: unused variable 'ret' [-Werror=unused-variable]

Fixes 226014d13fa5 ("nvmem: lpc18xx_eeprom: use devm_nvmem_register()")
---
 drivers/nvmem/lpc18xx_eeprom.c | 1 -
 1 file changed, 1 deletion(-)
drivers/nvmem/lpc18xx_eeprom.c +0 -1
index b42dbaddb419..66cff1e2147a 100644
@@ -255,7 +255,6 @@ static int lpc18xx_eeprom_probe(struct platform_device *pdev)
 static int lpc18xx_eeprom_remove(struct platform_device *pdev)
 {
 	struct lpc18xx_eeprom_dev *eeprom = platform_get_drvdata(pdev);
-	int ret;
 
 	clk_disable_unprepare(eeprom->clk);
 
Signature · 1 line
2.18.0
#1 lore raw

wt., 2 pa? 2018 o 23:10 Arnd Bergmann <[email protected]> napisa?(a):

Quoted 23 lines

drivers/nvmem/lpc18xx_eeprom.c: In function 'lpc18xx_eeprom_remove':
drivers/nvmem/lpc18xx_eeprom.c:258:6: error: unused variable 'ret' [-Werror=unused-variable]

Fixes 226014d13fa5 ("nvmem: lpc18xx_eeprom: use devm_nvmem_register()")
---
 drivers/nvmem/lpc18xx_eeprom.c | 1 -
 1 file changed, 1 deletion(-)
drivers/nvmem/lpc18xx_eeprom.c +0 -2
index b42dbaddb419..66cff1e2147a 100644
@@ -255,7 +255,6 @@ static int lpc18xx_eeprom_probe(struct platform_device *pdev)
 static int lpc18xx_eeprom_remove(struct platform_device *pdev)
 {
        struct lpc18xx_eeprom_dev *eeprom = platform_get_drvdata(pdev);
-       int ret;
 
        clk_disable_unprepare(eeprom->clk);
 
--
Quoted 2 lines

2.18.0

Hi Arnd,

I had already sent a fix for that with you in Cc:
https://lkml.org/lkml/2018/10/2/439

Best regards,
Bartosz

#2 lore raw
Quoted 7 lines · Bartosz Golaszewski

wt., 2 pa? 2018 o 23:10 Arnd Bergmann <[email protected]> napisa?(a):

Hi Arnd,

I had already sent a fix for that with you in Cc:
https://lkml.org/lkml/2018/10/2/439

Ah, good. I had some vague memory of that, but couldn't find it in my mailbox when I sent out the other fixes for today's linux-next build regressions, so I included this as well.

Please ignore my patch.

Arnd