summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/msp3400.c
diff options
context:
space:
mode:
Diffstat (limited to 'linux/drivers/media/video/msp3400.c')
-rw-r--r--linux/drivers/media/video/msp3400.c2
1 files changed, 1 insertions, 1 deletions
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);
}