]> git.baikalelectronics.ru Git - kernel.git/commit
spi: ti-qspi: cleanup wait_for_completion return handling
authorNicholas Mc Guire <hofrat@osadl.org>
Thu, 5 Feb 2015 15:03:42 +0000 (10:03 -0500)
committerMark Brown <broonie@kernel.org>
Thu, 5 Feb 2015 18:04:03 +0000 (18:04 +0000)
commit4d64cc0711651cb0ef9ed90fc0d754249e67d0a2
treec41d6725e8eb9ad018ef039e13e7e911e06c477d
parentbfa6fa2a2dfa997f6c80e35808e50464ecfebcda
spi: ti-qspi: cleanup wait_for_completion return handling

return type of wait_for_completion_timeout is unsigned long not int, this
patch uses the return value of wait_for_completion_timeout in the condition
directly rather than assigning it to an incorrect type variable.

Signed-off-by: Nicholas Mc Guire <hofrat@osadl.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-ti-qspi.c