spi: s3c64xx: simplify if statement in prepare_transfer function
authorAndi Shyti <andi.shyti@samsung.com>
Tue, 28 Jun 2016 02:41:14 +0000 (11:41 +0900)
committerMark Brown <broonie@kernel.org>
Wed, 29 Jun 2016 21:45:23 +0000 (22:45 +0100)
commit730d9d4d11cf48b17d07daaff1f0540642317e09
tree603313185f16595a8a7d83fb294fa0be1fdddc6b
parent11f66f0927bd044c17b2c2884d5103f8eb6cab38
spi: s3c64xx: simplify if statement in prepare_transfer function

The whole function is inside an 'if' statement
("!is_polling(sdd)").

Check the opposite of that statement at the beginning and exit,
this way we can have one level less of indentation.

Remove the goto paths as they are redundant.

Signed-off-by: Andi Shyti <andi.shyti@samsung.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-s3c64xx.c