]> git.baikalelectronics.ru Git - kernel.git/commit
platform/x86: surface3_power: Fix a NULL vs IS_ERR() check in probe
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 7 Apr 2020 09:30:52 +0000 (12:30 +0300)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 17 Apr 2020 13:47:26 +0000 (16:47 +0300)
commit2df1115f821b2f723734866f798b1e6240dd389f
tree5e3675010c3c14baa660a0c9dd8138b442bfcd00
parent0e6c92ce1d170795a396f8108369eb2c8412797f
platform/x86: surface3_power: Fix a NULL vs IS_ERR() check in probe

The i2c_acpi_new_device() function never returns NULL, it returns error
pointers.

Fixes: 6580d28324e7 ("platform/x86: surface3_power: MSHW0011 rev-eng implementation")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/platform/x86/surface3_power.c