Skip to contentSkip to conversation

media/IR/imon: testing the wrong variable

PATCH In review Dan Carpenter 2 participants 2 messages May 4, 2010 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

PATCH 2/3 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.

drivers/media/IR/imon.c +1 -1
index b65c31a..f2066d0 100644
@@ -1672,7 +1672,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;
 	}