diff options
author | Andi Shyti <andi.shyti@samsung.com> | 2016-06-28 04:41:14 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-06-29 23:45:23 +0200 |
commit | 730d9d4d11cf48b17d07daaff1f0540642317e09 (patch) | |
tree | 603313185f16595a8a7d83fb294fa0be1fdddc6b /drivers/cpufreq/s3c64xx-cpufreq.c | |
parent | spi: s3c64xx: do not configure the device twice (diff) | |
download | linux-730d9d4d11cf48b17d07daaff1f0540642317e09.tar.xz linux-730d9d4d11cf48b17d07daaff1f0540642317e09.zip |
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>
Diffstat (limited to 'drivers/cpufreq/s3c64xx-cpufreq.c')
0 files changed, 0 insertions, 0 deletions