[alsa-devel] [PATCH 1/4] ASoC: mc13783: Fix of_node_put() call with uninitialized object
Mark Brown
broonie at kernel.org
Tue Oct 7 20:54:43 CEST 2014
On Tue, Oct 07, 2014 at 08:14:00PM +0200, Takashi Iwai wrote:
> Mark Brown wrote:
> > I don't actually see it as a readability concern - to me having the get
> > and release close to each other and especially having them at the same
> > level of indentation helps.
> I do understand the merit, but it looks uglier to my taste.
> The success path goes again with if (ret). (Or we'd need two goto's
> or deeper if-else blocks.)
That looks ugly, yes - I'd be doing a check for ret before the second
property call or something. Or just put the pdata check in the existing
error path.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: Digital signature
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20141007/c7b935a9/attachment.sig>
More information about the Alsa-devel
mailing list