[PATCH 2/8] Documentation/spi/spidev_test.c: clean up input_tx

Joshua Clayton stillcompiling at gmail.com
Tue Nov 17 11:21:12 PST 2015

On Tuesday, November 17, 2015 05:43:33 PM Mark Brown wrote:
> On Tue, Nov 17, 2015 at 07:24:22AM -0800, Joshua Clayton wrote:
> > Put input from string into its own function.
> Again, why are we doing this?  I'm having a hard time seeing what the
> gain is, the amount of code being moved is tiny.

It takes some clutter out of main() whose scope is limited to that little block of code, 
and because in the next patch we add another (larger)function to the if/else block.

I don't know if it is valid to say "look at the next commit" for justification, but
That is the reason.

~Joshua Clayton

More information about the linux-arm-kernel mailing list