spi: spidev_test: transfer_escaped_string function
authorJoshua Clayton <stillcompiling@gmail.com>
Wed, 18 Nov 2015 22:30:38 +0000 (14:30 -0800)
committerMark Brown <broonie@kernel.org>
Mon, 23 Nov 2015 14:54:01 +0000 (14:54 +0000)
commit5c437a401b824399b6fa7342c66b675ebb7af43e
tree7fa7f5ae400f9aee7c238ae139af4968b007c1e0
parent5eca4d843f9f0c3140a8657ba2f8217ee6c08c11
spi: spidev_test: transfer_escaped_string function

Move the input_tx code into its own small function.
This cleans up some variables from main() that are used only here.
While we are at it, check malloc calls instead of assuming they succeed.

Signed-off-by: Joshua Clayton <stillcompiling@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
tools/spi/spidev_test.c