From: Alexey Dobriyan <adobriyan@gmail.com>
To: Dmitry Torokhov <dtor_core@ameritech.net>
Cc: Marek Va?ut <marek.vasut@gmail.com>, linux-kernel@vger.kernel.org
Subject: [PATCH] iforce: fix -ENOMEM check
Date: Mon, 23 Jan 2006 18:28:08 +0300 [thread overview]
Message-ID: <20060123152808.GA7766@mipter.zuzino.mipt.ru> (raw)
In-Reply-To: <200601230048.43360.dtor_core@ameritech.net>
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
---
drivers/input/joystick/iforce/iforce-main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/drivers/input/joystick/iforce/iforce-main.c
+++ b/drivers/input/joystick/iforce/iforce-main.c
@@ -345,7 +345,7 @@ int iforce_init_device(struct iforce *if
int i;
input_dev = input_allocate_device();
- if (input_dev)
+ if (!input_dev)
return -ENOMEM;
init_waitqueue_head(&iforce->wait);
next prev parent reply other threads:[~2006-01-23 15:10 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-01-22 11:50 Guillemot joystick not working since 2.6.14 Marek Vašut
2006-01-22 19:55 ` Alexey Dobriyan
2006-01-23 5:48 ` Dmitry Torokhov
2006-01-23 15:28 ` Alexey Dobriyan [this message]
2006-01-25 5:51 ` [PATCH] iforce: fix -ENOMEM check Dmitry Torokhov
2006-01-28 18:03 Marek Vašut
2006-01-29 4:14 ` Dmitry Torokhov
2006-01-29 11:09 ` Marek Vašut
2006-01-30 3:26 ` Dmitry Torokhov
2006-01-30 13:47 ` Marek Vašut
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20060123152808.GA7766@mipter.zuzino.mipt.ru \
--to=adobriyan@gmail.com \
--cc=dtor_core@ameritech.net \
--cc=linux-kernel@vger.kernel.org \
--cc=marek.vasut@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).