On Thu, Feb 13, 2014 at 03:28:41PM +0100, Jean Delvare wrote:
> While backporting 33cf00e5 ("spi: attach/detach SPI device to the ACPI
> power domain"), I noticed that the code changes were suboptimal:
> 
> * Why use &spi->dev when we have dev at hand?
> 
> * After fixing the above, spi is used only once, so we don't really
>   need a local variable for it.

I've applied this but I have to say it's a bit marginal as a cleanup -
for example while we do only use the SPI device once it's not entirely
idiomatic to use to_spi_device() in the middle of the code rather than
at the top of the function so it's a small speed bump to see that.

Attachment: signature.asc
Description: Digital signature

Reply via email to