提交 4fd9fcf7 编写于 作者: D Dan Carpenter 提交者: Dmitry Torokhov

Input: kxtj9 - fix bug in probe()

We are testing the wrong variable here.  I believe tj9->input_dev
is always NULL at this point, so probe() will fail.
Signed-off-by: NDan Carpenter <error27@gmail.com>
Signed-off-by: NDmitry Torokhov <dtor@mail.ru>
上级 e449edbb
......@@ -301,7 +301,7 @@ static int __devinit kxtj9_setup_input_device(struct kxtj9_data *tj9)
int err;
input_dev = input_allocate_device();
if (!tj9->input_dev) {
if (!input_dev) {
dev_err(&tj9->client->dev, "input device allocate failed\n");
return -ENOMEM;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册