[PATCH] v4l: 721: check kthread correctly
[pandora-kernel.git] / drivers / media / video / msp3400.c
index 6e2b077..88cc793 100644 (file)
@@ -1566,7 +1566,7 @@ static int msp_detach(struct i2c_client *client)
        struct msp3400c *msp  = i2c_get_clientdata(client);
 
        /* shutdown control thread */
-       if (msp->kthread >= 0) {
+       if (msp->kthread) {
                msp->restart = 1;
                kthread_stop(msp->kthread);
        }