Re: [PATCH v2 2/4] iio: light: isl29018: 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.

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





[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