Re: [PATCH -next] eeprom: at25: remove unneeded 'at25_remove'

2018-10-05 Thread Arnd Bergmann
On Fri, Oct 5, 2018 at 8:08 AM YueHaibing wrote: > > Fixes gcc '-Wunused-but-set-variable' warning: > > drivers/misc/eeprom/at25.c: In function 'at25_remove': > drivers/misc/eeprom/at25.c:384:20: warning: > variable 'at25' set but not used [-Wunused-but-set-variable] > > Since commit

Re: [PATCH -next] eeprom: at25: remove unneeded 'at25_remove'

2018-10-05 Thread Geert Uytterhoeven
On Fri, Oct 5, 2018 at 8:08 AM YueHaibing wrote: > Fixes gcc '-Wunused-but-set-variable' warning: > > drivers/misc/eeprom/at25.c: In function 'at25_remove': > drivers/misc/eeprom/at25.c:384:20: warning: > variable 'at25' set but not used [-Wunused-but-set-variable] > > Since commit 96d08fb43e30

[PATCH -next] eeprom: at25: remove unneeded 'at25_remove'

2018-10-05 Thread YueHaibing
Fixes gcc '-Wunused-but-set-variable' warning: drivers/misc/eeprom/at25.c: In function 'at25_remove': drivers/misc/eeprom/at25.c:384:20: warning: variable 'at25' set but not used [-Wunused-but-set-variable] Since commit 96d08fb43e30 ("eeprom: at25: use devm_nvmem_register()"), at25_remove is do