On Tue, Aug 08, 2023 at 08:24:53PM +0800, Yang Yingliang wrote: > devm_nvmem_register() never returns NULL pointer, it will return > ERR_PTR() when it fails, so replace the check with IS_ERR() and > use PTR_ERR() as return code. > > Fixes: 9ab5465349c0 ("misc: microchip: pci1xxxx: Add support to read and write into PCI1XXXX EEPROM via NVMEM sysfs") > Fixes: 0969001569e4 ("misc: microchip: pci1xxxx: Add support to read and write into PCI1XXXX OTP via NVMEM sysfs") > Signed-off-by: Yang Yingliang <yangyingliang@xxxxxxxxxx> > --- > v1 -> v2: > Use PTR_ERR_OR_ZERO(). Dan sent the same thing right before you did, sorry: https://lore.kernel.org/r/043df330-222b-4c2c-ae19-ed2f731bfe0b@moroto.mountain