[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <8c7a5bcc-1fdb-45af-8f0c-1f9b6f0cf058@web.de>
Date: Fri, 1 Nov 2024 13:43:06 +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 1/4] iio: light: ltr501: Assing ddata to NULL
> When iio_get_acpi_device_name_and_data() fails, the ddata may be left
> uninitialised. Initialise it to NULL.
How do you think about to perform the variable assignment only in
a corresponding else branch?
Can it be that this adjustment does not really matter here because of
the following statement?
if (!name)
return -ENODEV;
Regards,
Markus
Powered by blists - more mailing lists