[alsa-devel] [PATCH 1/2] ASoC: cs35l32: avoid uninitialized variable access
Mark Brown
broonie at kernel.org
Sat Mar 5 06:39:34 CET 2016
On Mon, Jan 25, 2016 at 06:07:32PM +0100, Arnd Bergmann wrote:
> - if (i2c_client->dev.of_node) {
> + if (IS_ENABLED(CONFIG_OF) && i2c_client->dev.of_node) {
This feels it's going to be happening a lot and we should probably have
a dev_has_of_node() helper that does the IS_ENABLED() check.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: not available
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20160305/5f55b1dd/attachment.sig>
More information about the Alsa-devel
mailing list