[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <12767145-97a3-445a-b632-511e3ed20474@web.de>
Date: Fri, 1 Nov 2024 15:27:54 +0100
From: Markus Elfring <Markus.Elfring@....de>
To: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>,
linux-iio@...r.kernel.org, Jonathan Cameron <Jonathan.Cameron@...wei.com>
Cc: LKML <linux-kernel@...r.kernel.org>,
Dan Carpenter <dan.carpenter@...aro.org>, Jonathan Cameron
<jic23@...nel.org>, Lars-Peter Clausen <lars@...afoo.de>
Subject: Re: [PATCH v2 2/4] iio: light: isl29018: Assing ddata to NULL
> 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
Powered by blists - more mailing lists