]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
i2c: nomadik: Fix the usage of wait_for_completion_timeout
authorChuansheng Liu <chuansheng.liu@intel.com>
Tue, 6 Nov 2012 17:18:37 +0000 (01:18 +0800)
committerWolfram Sang <w.sang@pengutronix.de>
Mon, 12 Nov 2012 17:21:55 +0000 (18:21 +0100)
commitcf7505ef9cd1349dfff0b2aeb9bc62f54c14e03d
tree13c69afc6bff89d82efd82f372bc92e25af0c1e6
parent77b67063bb6bce6d475e910d3b886a606d0d91f7
i2c: nomadik: Fix the usage of wait_for_completion_timeout

The return value of wait_for_completion_timeout() is always
>= 0 with unsigned int type.

So the condition "ret < 0" or "ret >= 0" is pointless.

Signed-off-by: liu chuansheng <chuansheng.liu@intel.com>
Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
drivers/i2c/busses/i2c-nomadik.c