msp3400: check ->kthread correctly
diff mbox series

Message ID 20051006214621.GC2370@mipter.zuzino.mipt.ru
State New, archived
Headers show
Series
  • msp3400: check ->kthread correctly
Related show

Commit Message

Alexey Dobriyan Oct. 6, 2005, 9:46 p.m. UTC
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
---

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


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Comments

Michael Ira Krufky Oct. 6, 2005, 11:51 p.m. UTC | #1
Alexey Dobriyan wrote:

>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);
> 	}
>
>--
>video4linux-list mailing list
>Unsubscribe mailto:video4linux-list-request@redhat.com?subject=unsubscribe
>https://www.redhat.com/mailman/listinfo/video4linux-list
>  
>
Applied to video4linux cvs.  Thank you!

CVSROOT:    /cvs/video4linux
Module name:    video4linux
Changes by:    mkrufky    20051007 01:48:36

Modified files:
    .              : ChangeLog msp3400.c

Log message:
* msp3400.c: (msp_detach):
- check ->kthread correctly

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Ack'd by: Michael Krufky <mkrufky@m1k.net>

Patch
diff mbox series

--- ./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);
 	}