i2c: imx: fix handling of wait_for_completion_timeout result
authorNicholas Mc Guire <der.herr@hofr.at>
Sat, 27 Dec 2014 13:33:53 +0000 (08:33 -0500)
committerWolfram Sang <wsa@the-dreams.de>
Tue, 13 Jan 2015 15:21:07 +0000 (16:21 +0100)
commitcb9eaba4c5dc16b4c00d7a86e4f5636c4edf964c
treec1da4934f12aece3cff20acf9a48a734d1562036
parent387f0de6c37380ad72bb92bb621f23555dd4c42e
i2c: imx: fix handling of wait_for_completion_timeout result

wait_for_completion_timeout does not return negative values so
"result" handling here should be simplified to cover the actually
possible cases only.

Signed-off-by: Nicholas Mc Guire <der.herr@hofr.at>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-imx.c