summaryrefslogtreecommitdiffstats
path: root/drivers/input
diff options
context:
space:
mode:
authorDan Carpenter <error27@gmail.com>2011-07-20 08:12:21 +0200
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2011-07-20 08:18:05 +0200
commit4fd9fcf7c1ee6c339504525b43ad5e77334ff1b5 (patch)
tree59ad64a27b1e727bd77c8645dd4ee7ee9542d44d /drivers/input
parentInput: intel-mid-touch - remove pointless checking for variable 'found' (diff)
downloadlinux-4fd9fcf7c1ee6c339504525b43ad5e77334ff1b5.tar.xz
linux-4fd9fcf7c1ee6c339504525b43ad5e77334ff1b5.zip
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: Dan Carpenter <error27@gmail.com> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers/input')
-rw-r--r--drivers/input/misc/kxtj9.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/misc/kxtj9.c b/drivers/input/misc/kxtj9.c
index a416f7f06738..6c96dc3a3c8f 100644
--- a/drivers/input/misc/kxtj9.c
+++ b/drivers/input/misc/kxtj9.c
@@ -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;
}