From: Dan Carpenter Date: Tue, 4 May 2010 11:38:26 +0000 (-0300) Subject: V4L/DVB: media/IR/imon: testing the wrong variable X-Git-Tag: v2.6.35-rc1~480^2~23 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5f6e3c8e34bc02800b499e09828ac1061e004977;p=profile%2Fivi%2Fkernel-adaptation-intel-automotive.git 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 Acked-by: Jarod Wilson Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/IR/imon.c b/drivers/media/IR/imon.c index 9ca5e86..d5d8d93 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) } ir = kzalloc(sizeof(struct ir_input_dev), GFP_KERNEL); - if (!props) { + if (!ir) { dev_err(ictx->dev, "remote ir input dev allocation failed\n"); goto ir_dev_alloc_failed; }