[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20150609101005.GZ14071@sirena.org.uk>
Date: Tue, 9 Jun 2015 11:10:05 +0100
From: Mark Brown <broonie@...nel.org>
To: Lee Jones <lee.jones@...aro.org>
Cc: linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org,
kernel@...inux.com, lgirdwood@...il.com
Subject: Re: [PATCH 5/8] regulator: pwm-regulator: Don't assign structure
attributes right away
On Tue, Jun 09, 2015 at 08:03:47AM +0100, Lee Jones wrote:
> Admittedly this is an extreme example, but I do consider:
> init_data = of_get_regulator_init_data(<blah>);
> if (init_data)
> return -ENOMEM;
> ... neater than:
> config.init_data = of_get_regulator_init_data(<blah>);
> if (!config.init_data)
> return -ENOMEM;
Oh, I see. I pretty much see things the other way for things where the
temporary has no other users.
Download attachment "signature.asc" of type "application/pgp-signature" (474 bytes)
Powered by blists - more mailing lists