diff options
author | Dan Carpenter <error27@gmail.com> | 2010-07-23 06:08:26 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-08-02 15:43:00 -0400 |
commit | 49b7a12c0aa217c9fb163d330b5b80bafe55cb8b (patch) | |
tree | ff06404554a52e39426984c1d58f50848ee0f137 /drivers/media/IR | |
parent | 5c79b496a713dac1a706845bdd047aae15421ef5 (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.c | 2 |
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); |