diff options
-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); |