Thread (48 messages) 48 messages, 4 authors, 2021-11-29

Re: [PATCH v2 4/9] i2c: i801: Improve is_dell_system_with_lis3lv02d

From: Andy Shevchenko <hidden>
Date: 2021-08-11 15:46:06

On Fri, Aug 06, 2021 at 11:15:15PM +0200, Heiner Kallweit wrote:
Replace the ugly cast of the return_value pointer with proper usage.
In addition use dmi_match() instead of open-coding it.
...
-	acpi_get_devices(NULL, check_acpi_smo88xx_device, NULL,
-			 (void **)&found);
+	acpi_get_devices(NULL, check_acpi_smo88xx_device, NULL, &err);
 
-	return found;
+	return !IS_ERR(err);
Shouldn't you also check the status of acpi_get_device()?

-- 
With Best Regards,
Andy Shevchenko

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help