Staging: lirc: fix PTR_ERR() check
authorDan Carpenter <error27@gmail.com>
Fri, 15 Oct 2010 03:42:35 +0000 (05:42 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 15 Oct 2010 19:24:39 +0000 (12:24 -0700)
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>
drivers/staging/lirc/lirc_sasem.c

index d1ac0997f51b08a26b9b15e537dd6cefe9b1a1f6..2e681cf3e85da8a957624467ff7d8c25feb605d2 100644 (file)
@@ -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;
        }