nvmem: lpc18xx_eeprom: remove an unused variable
Subsystems (2)
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]
--- drivers/nvmem/lpc18xx_eeprom.c | 1 - 1 file changed, 1 deletion(-)
drivers/nvmem/lpc18xx_eeprom.c +0 -1
@@ -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
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()")Signed-off-by Arnd Bergmann <[email protected]>--- drivers/nvmem/lpc18xx_eeprom.c | 1 - 1 file changed, 1 deletion(-)drivers/nvmem/lpc18xx_eeprom.c +0
-2@@ -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
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