Staging: rtl8712: fix an error test in start_drv_threads()
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 5 Mar 2014 08:43:19 +0000 (11:43 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 6 Mar 2014 19:58:32 +0000 (11:58 -0800)
commitb16aad354a51d2ecfc46c94b9a89fa363e19af9d
treea20d45565398bbd83f9078c1e95d1bd3d877d090
parent879cb0c986022379ece5946a64a11f5edb7c056e
Staging: rtl8712: fix an error test in start_drv_threads()

Testing for "if (IS_ERR(padapter->cmdThread) < 0)" doesn't make sense.
The kthread_run() function returns error pointers on error pointers on
error so it should just be "if (IS_ERR(padapter->cmdThread))".

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8712/os_intfs.c