V4L: media/IR: testing the wrong variable
Subsystems (2)
PATCH 1/1 V4L: 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 <[email protected]>
drivers/media/IR/ir-lirc-codec.c +1 -1
@@ -192,7 +192,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 );
Quoted 4 lines · Dan Carpenter
There is a typo here. We meant to test "rbuf" instead of "drv". We already tested "drv" earlier.
Signed-off-by Dan Carpenter <[email protected]>
Gah. I swear that got fixed once already... Thanks!
Acked-by Jarod Wilson <[email protected]>
Signature · 2 lines
Jarod Wilson [email protected]