diff options
author | Dan Carpenter | 2014-03-07 12:18:17 +0100 |
---|---|---|
committer | Greg Kroah-Hartman | 2014-03-09 07:42:14 +0100 |
commit | a16a027651359429b7a534edf8b82aac8f6482d5 (patch) | |
tree | ce2d4e871b62fdab491a8243221fb4448c166dd0 /drivers/staging/unisys | |
parent | staging: cxt1e1: change declaration of TWV_table (diff) | |
download | kernel-qcow2-linux-a16a027651359429b7a534edf8b82aac8f6482d5.tar.gz kernel-qcow2-linux-a16a027651359429b7a534edf8b82aac8f6482d5.tar.xz kernel-qcow2-linux-a16a027651359429b7a534edf8b82aac8f6482d5.zip |
staging: unisys/uislib: kthread_create() returns an ERR_PTR
kthread_create() returns an ERR_PTR on error, it never returns NULL.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/unisys')
-rw-r--r-- | drivers/staging/unisys/uislib/uisthread.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/unisys/uislib/uisthread.c b/drivers/staging/unisys/uislib/uisthread.c index ecf4bfcb34a6..782b06aad56d 100644 --- a/drivers/staging/unisys/uislib/uisthread.c +++ b/drivers/staging/unisys/uislib/uisthread.c @@ -45,7 +45,7 @@ uisthread_start(struct uisthread_info *thrinfo, /* used to stop the thread */ init_completion(&thrinfo->has_stopped); thrinfo->task = kthread_create(threadfn, thrcontext, name, NULL); - if (thrinfo->task == NULL) { + if (IS_ERR(thrinfo->task)) { thrinfo->id = 0; return 0; /* failure */ } |