summaryrefslogtreecommitdiff
path: root/linux/drivers/media
diff options
context:
space:
mode:
authorMichael Krufky <devnull@localhost>2005-10-06 23:48:36 +0000
committerMichael Krufky <devnull@localhost>2005-10-06 23:48:36 +0000
commitbdb424bcbf9f6b3dd84dacf2d57df71d4f883bc1 (patch)
treeac3f3445ae4663ff2c1deb30ebbd5c45e9facd11 /linux/drivers/media
parent54060236a7efe01640b889d00c8f7b65918faa7a (diff)
downloadmediapointer-dvb-s2-bdb424bcbf9f6b3dd84dacf2d57df71d4f883bc1.tar.gz
mediapointer-dvb-s2-bdb424bcbf9f6b3dd84dacf2d57df71d4f883bc1.tar.bz2
* msp3400.c: (msp_detach):
- check ->kthread correctly Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Signed-off-by: Michael Krufky <mkrufky@m1k.net>
Diffstat (limited to 'linux/drivers/media')
-rw-r--r--linux/drivers/media/video/msp3400-driver.c2
-rw-r--r--linux/drivers/media/video/msp3400.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/linux/drivers/media/video/msp3400-driver.c b/linux/drivers/media/video/msp3400-driver.c
index 23b46cacc..e91267516 100644
--- a/linux/drivers/media/video/msp3400-driver.c
+++ b/linux/drivers/media/video/msp3400-driver.c
@@ -1604,7 +1604,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);
}
diff --git a/linux/drivers/media/video/msp3400.c b/linux/drivers/media/video/msp3400.c
index 23b46cacc..e91267516 100644
--- a/linux/drivers/media/video/msp3400.c
+++ b/linux/drivers/media/video/msp3400.c
@@ -1604,7 +1604,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);
}