aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/IR
diff options
context:
space:
mode:
authorDan Carpenter <error27@gmail.com>2010-07-23 06:08:26 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-08-02 15:43:00 -0400
commit49b7a12c0aa217c9fb163d330b5b80bafe55cb8b (patch)
treeff06404554a52e39426984c1d58f50848ee0f137 /drivers/media/IR
parent5c79b496a713dac1a706845bdd047aae15421ef5 (diff)
V4L/DVB: media/IR: testing the wrong variable
There is a typo here. We meant to test "rbuf" instead of "drv". We already tested "drv" earlier. Signed-off-by: Dan Carpenter <error27@gmail.com> Acked-by: Jarod Wilson <jarod@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/IR')
-rw-r--r--drivers/media/IR/ir-lirc-codec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/IR/ir-lirc-codec.c b/drivers/media/IR/ir-lirc-codec.c
index ee1f2d443ab2..3ba482d96c4b 100644
--- a/drivers/media/IR/ir-lirc-codec.c
+++ b/drivers/media/IR/ir-lirc-codec.c
@@ -187,7 +187,7 @@ static int ir_lirc_register(struct input_dev *input_dev)
187 return rc; 187 return rc;
188 188
189 rbuf = kzalloc(sizeof(struct lirc_buffer), GFP_KERNEL); 189 rbuf = kzalloc(sizeof(struct lirc_buffer), GFP_KERNEL);
190 if (!drv) 190 if (!rbuf)
191 goto rbuf_alloc_failed; 191 goto rbuf_alloc_failed;
192 192
193 rc = lirc_buffer_init(rbuf, sizeof(int), LIRCBUF_SIZE); 193 rc = lirc_buffer_init(rbuf, sizeof(int), LIRCBUF_SIZE);