diff options
author | Dan Carpenter <error27@gmail.com> | 2010-07-23 07:08:26 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-08-02 16:43:00 -0300 |
commit | 49b7a12c0aa217c9fb163d330b5b80bafe55cb8b (patch) | |
tree | ff06404554a52e39426984c1d58f50848ee0f137 | |
parent | 5c79b496a713dac1a706845bdd047aae15421ef5 (diff) | |
download | kernel_samsung_tuna-49b7a12c0aa217c9fb163d330b5b80bafe55cb8b.zip kernel_samsung_tuna-49b7a12c0aa217c9fb163d330b5b80bafe55cb8b.tar.gz kernel_samsung_tuna-49b7a12c0aa217c9fb163d330b5b80bafe55cb8b.tar.bz2 |
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>
-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 ee1f2d4..3ba482d 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) return rc; rbuf = kzalloc(sizeof(struct lirc_buffer), GFP_KERNEL); - if (!drv) + if (!rbuf) goto rbuf_alloc_failed; rc = lirc_buffer_init(rbuf, sizeof(int), LIRCBUF_SIZE); |