From: Alexey Dobriyan Date: Wed, 9 Nov 2005 05:37:12 +0000 (-0800) Subject: [PATCH] v4l: 721: check kthread correctly X-Git-Tag: v2.6.15-rc1~249 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4d63cb45a2ee5cbf2e6d568fb2c4007a52e21bcf;p=platform%2Fkernel%2Flinux-exynos.git [PATCH] v4l: 721: check kthread correctly - Check ->kthread correctly Signed-off-by: Alexey Dobriyan Signed-off-by: Michael Krufky Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/media/video/msp3400.c b/drivers/media/video/msp3400.c index 6e2b077..88cc793c0 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); }