diff options
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2008-06-06 01:33:37 -0400 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2008-07-30 00:41:36 -0400 |
commit | 2547203d583cc267b98f518d5d93e3a0469d8f62 (patch) | |
tree | d4758d81eb78c25fff6abf0ff3660dd8dbc7a3a1 /drivers/input/joystick/grip.c | |
parent | 6902c0bead4ce266226fc0c5b3828b850bdc884a (diff) |
Input: gameport - check return value of gameport_register_driver()
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers/input/joystick/grip.c')
-rw-r--r-- | drivers/input/joystick/grip.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/input/joystick/grip.c b/drivers/input/joystick/grip.c index 684e07cfccc8..fc55899ba6c5 100644 --- a/drivers/input/joystick/grip.c +++ b/drivers/input/joystick/grip.c | |||
@@ -426,8 +426,7 @@ static struct gameport_driver grip_drv = { | |||
426 | 426 | ||
427 | static int __init grip_init(void) | 427 | static int __init grip_init(void) |
428 | { | 428 | { |
429 | gameport_register_driver(&grip_drv); | 429 | return gameport_register_driver(&grip_drv); |
430 | return 0; | ||
431 | } | 430 | } |
432 | 431 | ||
433 | static void __exit grip_exit(void) | 432 | static void __exit grip_exit(void) |