提交 5f6e3c8e 编写于 作者: D Dan Carpenter 提交者: Mauro Carvalho Chehab

V4L/DVB: media/IR/imon: testing the wrong variable

There is a typo here.  We meant to test "ir" instead of "props".  The
"props" variable was tested earlier.
Signed-off-by: NDan Carpenter <error27@gmail.com>
Acked-by: NJarod Wilson <jarod@redhat.com>
Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
上级 f03900d6
...@@ -1671,7 +1671,7 @@ static struct input_dev *imon_init_idev(struct imon_context *ictx) ...@@ -1671,7 +1671,7 @@ static struct input_dev *imon_init_idev(struct imon_context *ictx)
} }
ir = kzalloc(sizeof(struct ir_input_dev), GFP_KERNEL); ir = kzalloc(sizeof(struct ir_input_dev), GFP_KERNEL);
if (!props) { if (!ir) {
dev_err(ictx->dev, "remote ir input dev allocation failed\n"); dev_err(ictx->dev, "remote ir input dev allocation failed\n");
goto ir_dev_alloc_failed; goto ir_dev_alloc_failed;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册