]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - drivers/media/IR/imon.c
V4L/DVB: media/IR/imon: testing the wrong variable
[net-next-2.6.git] / drivers / media / IR / imon.c
index 9ca5e864d16f15ea9e6b6405dfd31b785137f8ed..d5d8d9331870e5084d8ac4efe8e6711d0cebe173 100644 (file)
@@ -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;
        }