Re: [PATCH v2 1/4] iio: light: ltr501: Assing ddata to NULL

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> 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




[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Input]     [Linux Kernel]     [Linux SCSI]     [X.org]

  Powered by Linux