Re: [PATCH] lightnvm: propagate device_add() error code

2016-09-16 Thread Matias Bjørling
On 09/15/2016 05:53 PM, Arnd Bergmann wrote: device_add() may fail, and all callers are supposed to check the return value, but one new user in lightnvm doesn't: drivers/lightnvm/sysfs.c: In function 'nvm_sysfs_register_dev': drivers/lightnvm/sysfs.c:184:2: error: ignoring return value of

Re: [PATCH] lightnvm: propagate device_add() error code

2016-09-16 Thread Matias Bjørling
On 09/15/2016 05:53 PM, Arnd Bergmann wrote: device_add() may fail, and all callers are supposed to check the return value, but one new user in lightnvm doesn't: drivers/lightnvm/sysfs.c: In function 'nvm_sysfs_register_dev': drivers/lightnvm/sysfs.c:184:2: error: ignoring return value of