From: Alexey Dobriyan Date: Wed, 9 Nov 2005 05:37:12 +0000 (-0800) Subject: [PATCH] v4l: 721: check kthread correctly X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4d63cb45a2ee5cbf2e6d568fb2c4007a52e21bcf;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.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 6e2b0775a74..88cc793c0bc 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); }