kernel-janitors.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [patch] Staging: lirc: fix PTR_ERR() check
@ 2010-10-15  3:42 Dan Carpenter
  2010-10-15 13:17 ` Jarod Wilson
  0 siblings, 1 reply; 2+ messages in thread
From: Dan Carpenter @ 2010-10-15  3:42 UTC (permalink / raw)
  To: kernel-janitors

This is a typo.  It's supposed to be IS_ERR() here instead of PTR_ERR().

Signed-off-by: Dan Carpenter <error27@gmail.com>

diff --git a/drivers/staging/lirc/lirc_sasem.c b/drivers/staging/lirc/lirc_sasem.c
index d1ac099..2e681cf 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;
 	}

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [patch] Staging: lirc: fix PTR_ERR() check
  2010-10-15  3:42 [patch] Staging: lirc: fix PTR_ERR() check Dan Carpenter
@ 2010-10-15 13:17 ` Jarod Wilson
  0 siblings, 0 replies; 2+ messages in thread
From: Jarod Wilson @ 2010-10-15 13:17 UTC (permalink / raw)
  To: kernel-janitors

On Fri, Oct 15, 2010 at 05:42:35AM +0200, Dan Carpenter wrote:
> 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>


-- 
Jarod Wilson
jarod@redhat.com


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-10-15 13:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-15  3:42 [patch] Staging: lirc: fix PTR_ERR() check Dan Carpenter
2010-10-15 13:17 ` Jarod Wilson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).