]> git.baikalelectronics.ru Git - kernel.git/commit
eeprom: idt_89hpesx: clean up an error pointer vs NULL inconsistency
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 2 Aug 2018 08:27:21 +0000 (11:27 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 2 Aug 2018 08:42:25 +0000 (10:42 +0200)
commit16070faf1be5200ccd57bfb94d888c62a207b534
tree6f10a8a14409e5abf33d50d4ff478054a1bc13a7
parent20cb85e8b3fb379e1124062ea8f64d6e185bda70
eeprom: idt_89hpesx: clean up an error pointer vs NULL inconsistency

We check for IS_ERR_OR_NULL() here, but later we check the same thing
for NULL only.  It turns out that it can only be NULL so we can make the
checking consistent by removing the ERR_PTR stuff.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/eeprom/idt_89hpesx.c