mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] msp3400: check ->kthread correctly
@ 2005-10-06 21:46 Alexey Dobriyan
  2005-10-06 23:51 ` Michael Krufky
  0 siblings, 1 reply; 2+ messages in thread
From: Alexey Dobriyan @ 2005-10-06 21:46 UTC (permalink / raw)
  To: linux-kernel; +Cc: Mauro Carvalho Chehab, video4linux-list

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
---

 drivers/media/video/msp3400.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- ./drivers/media/video/msp3400.c
+++ ./drivers/media/video/msp3400.c
@@ -1558,7 +1558,7 @@ static int msp_detach(struct i2c_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);
 	}


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-10-06 23:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-10-06 21:46 [PATCH] msp3400: check ->kthread correctly Alexey Dobriyan
2005-10-06 23:51 ` Michael Krufky

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome