From: Dan Carpenter Date: Fri, 23 Jul 2010 10:08:26 +0000 (-0300) Subject: V4L/DVB: media/IR: testing the wrong variable X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=49b7a12c0aa217c9fb163d330b5b80bafe55cb8b;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git 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 Acked-by: Jarod Wilson Signed-off-by: Mauro Carvalho Chehab --- 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) 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);