spi: spi-imx: cleanup wait_for_completion handling
authorNicholas Mc Guire <hofrat@osadl.org>
Mon, 2 Feb 2015 08:30:35 +0000 (03:30 -0500)
committerMark Brown <broonie@kernel.org>
Wed, 4 Feb 2015 20:53:15 +0000 (20:53 +0000)
commit56536a7ff59ccd5cb2d9a37dce4501a432456de0
treea5cd9a5f8115715b0ff9e02f9db87224a8f017e2
parent4b5d6aadce5e054d33719a7490076294c83d2f88
spi: spi-imx: cleanup wait_for_completion handling

return type of wait_for_completion_timeout is unsigned long not int and
always returns >=0 , this patch adds a suitable return variable and
simplifies the return value checking as there is no < 0 case.

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