On Wed, Dec 02, 2015 at 08:30:51AM +0100, Martin Sperl wrote: > > This has exactly one (tiny) user. Why is it a separate function? > Readability, mimicking devres code and the option of adding > object caching/reuse here later... This is *not* helping readability. > There is a much higher likelihood that spi_resources will be > allocated and then freed several times per second, so this > can save cpu cycles and avoid locks... In what way does splitting this over two functions helping improve performance? If there were multiple users or something perhaps but there don't appear to be.
Attachment:
signature.asc
Description: PGP signature