diff options
author | Dan Carpenter <dan.carpenter@linaro.org> | 2023-08-08 11:28:09 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-08-12 13:58:56 +0300 |
commit | 5a652fe5e38d906621e9c54a7d14ca4e030ab4f6 (patch) | |
tree | 70ae434b63ac6ee95b3edb5ed1b025c6450f606d /drivers/comedi | |
parent | 1314e1220d7d31aa99ed551e42d76ba7be8e5bf4 (diff) | |
download | linux-5a652fe5e38d906621e9c54a7d14ca4e030ab4f6.tar.xz |
misc: microchip: pci1xxxx: Fix some NULL vs IS_ERR() bugs
The devm_nvmem_register() function returns error pointers. It never
returns NULL. Update the checks accordingly.
Fixes: 0969001569e4 ("misc: microchip: pci1xxxx: Add support to read and write into PCI1XXXX OTP via NVMEM sysfs")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Link: https://lore.kernel.org/r/043df330-222b-4c2c-ae19-ed2f731bfe0b@moroto.mountain
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/comedi')
0 files changed, 0 insertions, 0 deletions