Skip to content

Commit

Permalink
V4L/DVB: media/IR: testing the wrong variable
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Dan Carpenter authored and Mauro Carvalho Chehab committed Aug 2, 2010
1 parent 5c79b49 commit 49b7a12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/IR/ir-lirc-codec.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 49b7a12

Please sign in to comment.