Skip to content

Commit

Permalink
Staging: lirc: fix PTR_ERR() check
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Dan Carpenter authored and Greg Kroah-Hartman committed Oct 15, 2010
1 parent fcbf77b commit 79e7c56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/lirc/lirc_sasem.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 79e7c56

Please sign in to comment.