]> git.baikalelectronics.ru Git - kernel.git/commit
can: janz-ican3: Fix the usage of wait_for_completion_timeout
authorChuansheng Liu <chuansheng.liu@intel.com>
Tue, 6 Nov 2012 17:31:37 +0000 (01:31 +0800)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Thu, 15 Nov 2012 16:26:04 +0000 (17:26 +0100)
commitfd6f50b50e240979435a057b76fa714c6879c399
tree7370721b01919de4c7287dbf1a45aa3337e24ecf
parent913734510599af1c5c841939f279ac729764fac3
can: janz-ican3: 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: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/janz-ican3.c