[PATCH] v4l: 721: check kthread correctly
authorAlexey Dobriyan <adobriyan@gmail.com>
Wed, 9 Nov 2005 05:37:12 +0000 (21:37 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 9 Nov 2005 15:56:15 +0000 (07:56 -0800)
- Check ->kthread correctly

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Michael Krufky <mkrufky@m1k.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/media/video/msp3400.c

index 6e2b0775a74e332941280d1c04e9d2febb11a210..88cc793c0bc95e6ee6ab1ab6f1a902adaf396561 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);
        }