]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
iio: imu: inv_mpu6050: Drop double check for ACPI companion device
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 28 May 2020 14:15:52 +0000 (17:15 +0300)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 14 Jun 2020 10:49:32 +0000 (11:49 +0100)
commitab4dd0128f637c6af159ab0ea79ea0fb4166fd8f
tree3162e72f246a47da7df631ba2da5410e211f2ed6
parent9604ed758dd807e749326ae8735f483567d1c35f
iio: imu: inv_mpu6050: Drop double check for ACPI companion device

acpi_dev_get_resources() does perform the NULL pointer check against
ACPI companion device which is given as function parameter. Thus,
there is no need to duplicate this check in the caller.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/imu/inv_mpu6050/inv_mpu_acpi.c