]> git.baikalelectronics.ru Git - kernel.git/commit
spi: sh-msiof: cleanup wait_for_completion return handling
authorNicholas Mc Guire <der.herr@hofr.at>
Mon, 2 Feb 2015 08:30:34 +0000 (03:30 -0500)
committerMark Brown <broonie@kernel.org>
Wed, 4 Feb 2015 20:52:53 +0000 (20:52 +0000)
commit2e921ef23bc32a7e6d80ba308a9dcbed5a4dc5a9
tree1e9f74329b0c423e12ff6dadac25ce01c2390252
parent7723bca953d6e56f18cfbf8c8a0955846b8f4455
spi: sh-msiof: 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 <der.herr@hofr.at>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-sh-msiof.c