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)
commitc70edb9e8a30c7bd8eae347b9a7d83984e2b5ae3
tree7370721b01919de4c7287dbf1a45aa3337e24ecf
parent7653ebd5f6a4cd1976cb82e8ef94ebbe3ff001f3
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