aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexey Dobriyan <adobriyan@gmail.com>2005-11-08 21:37:12 -0800
committerLinus Torvalds <torvalds@g5.osdl.org>2005-11-09 07:56:15 -0800
commit4d63cb45a2ee5cbf2e6d568fb2c4007a52e21bcf (patch)
tree575098ca6fd019946219bc761646e0c0e2cc55e3
parentbd15eba3a0f2b175bd80c21d5fc86c02ed4c56f6 (diff)
downloadkernel_samsung_aries-4d63cb45a2ee5cbf2e6d568fb2c4007a52e21bcf.zip
kernel_samsung_aries-4d63cb45a2ee5cbf2e6d568fb2c4007a52e21bcf.tar.gz
kernel_samsung_aries-4d63cb45a2ee5cbf2e6d568fb2c4007a52e21bcf.tar.bz2
[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>
-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 6e2b077..88cc793 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);
}