summaryrefslogtreecommitdiff
path: root/drivers/media/video/msp3400.c
diff options
context:
space:
mode:
authorAlexey Dobriyan <adobriyan@gmail.com>2005-11-09 08:37:12 +0300
committerLinus Torvalds <torvalds@g5.osdl.org>2005-11-09 18:56:15 +0300
commit4d63cb45a2ee5cbf2e6d568fb2c4007a52e21bcf (patch)
tree575098ca6fd019946219bc761646e0c0e2cc55e3 /drivers/media/video/msp3400.c
parentbd15eba3a0f2b175bd80c21d5fc86c02ed4c56f6 (diff)
downloadlinux-4d63cb45a2ee5cbf2e6d568fb2c4007a52e21bcf.tar.xz
[PATCH] v4l: 721: check kthread correctly
- 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>
Diffstat (limited to 'drivers/media/video/msp3400.c')
-rw-r--r--drivers/media/video/msp3400.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/msp3400.c b/drivers/media/video/msp3400.c
index 6e2b0775a74e..88cc793c0bc9 100644
--- a/drivers/media/video/msp3400.c
+++ b/drivers/media/video/msp3400.c
@@ -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);
}