Re: [PATCH v2 2/4] iio: light: isl29018: Assing ddata to NULL
From: Markus Elfring
Date: Fri Nov 01 2024 - 10:28:46 EST
> When iio_get_acpi_device_name_and_data() fails, the ddata may be left
> uninitialised. Initialise it to NULL.
Would a summary phrase like “Assign NULL to ddata in isl29018_probe()” be helpful?
How do you think about a null pointer check also with the local variable “name” instead?
Regards,
Markus