aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/IR/imon.c
diff options
context:
space:
mode:
authorDan Carpenter <error27@gmail.com>2010-05-04 07:38:26 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-05-19 11:59:03 -0400
commit5f6e3c8e34bc02800b499e09828ac1061e004977 (patch)
tree1d8c59c7f9243c6dcb0f2c62ad9a15ef5ca2bd93 /drivers/media/IR/imon.c
parentf03900d696079fa1e93c91af0e49c55b9b7dd105 (diff)
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: Dan Carpenter <error27@gmail.com> Acked-by: Jarod Wilson <jarod@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/IR/imon.c')
-rw-r--r--drivers/media/IR/imon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/IR/imon.c b/drivers/media/IR/imon.c
index 9ca5e864d16f..d5d8d9331870 100644
--- a/drivers/media/IR/imon.c
+++ b/drivers/media/IR/imon.c
@@ -1671,7 +1671,7 @@ static struct input_dev *imon_init_idev(struct imon_context *ictx)
1671 } 1671 }
1672 1672
1673 ir = kzalloc(sizeof(struct ir_input_dev), GFP_KERNEL); 1673 ir = kzalloc(sizeof(struct ir_input_dev), GFP_KERNEL);
1674 if (!props) { 1674 if (!ir) {
1675 dev_err(ictx->dev, "remote ir input dev allocation failed\n"); 1675 dev_err(ictx->dev, "remote ir input dev allocation failed\n");
1676 goto ir_dev_alloc_failed; 1676 goto ir_dev_alloc_failed;
1677 } 1677 }