diff options
author | Dan Carpenter <error27@gmail.com> | 2010-10-15 05:42:35 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-10-15 12:24:39 -0700 |
commit | 79e7c561aeea958479194e24d711e94615ea2823 (patch) | |
tree | 287189621af2b893c85ad8f86e75e584552eaa5d /drivers/staging/lirc | |
parent | fcbf77bf872c28ac3f18261a44af91383f0a2f3d (diff) |
Staging: lirc: fix PTR_ERR() check
This is a typo. It's supposed to be IS_ERR() here instead of PTR_ERR().
Signed-off-by: Dan Carpenter <error27@gmail.com>
Acked-by: Jarod Wilson <jarod@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/lirc')
-rw-r--r-- | drivers/staging/lirc/lirc_sasem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/lirc/lirc_sasem.c b/drivers/staging/lirc/lirc_sasem.c index d1ac0997f51..2e681cf3e85 100644 --- a/drivers/staging/lirc/lirc_sasem.c +++ b/drivers/staging/lirc/lirc_sasem.c @@ -386,7 +386,7 @@ static ssize_t vfd_write(struct file *file, const char *buf, } data_buf = memdup_user(buf, n_bytes); - if (PTR_ERR(data_buf)) { + if (IS_ERR(data_buf)) { retval = PTR_ERR(data_buf); goto exit; } |