diff options
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2008-06-06 09:33:37 +0400 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2008-07-30 08:41:36 +0400 |
commit | 2547203d583cc267b98f518d5d93e3a0469d8f62 (patch) | |
tree | d4758d81eb78c25fff6abf0ff3660dd8dbc7a3a1 /drivers/input/joystick/gf2k.c | |
parent | 6902c0bead4ce266226fc0c5b3828b850bdc884a (diff) | |
download | linux-2547203d583cc267b98f518d5d93e3a0469d8f62.tar.xz |
Input: gameport - check return value of gameport_register_driver()
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers/input/joystick/gf2k.c')
-rw-r--r-- | drivers/input/joystick/gf2k.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/input/joystick/gf2k.c b/drivers/input/joystick/gf2k.c index cb6eef1f2d99..67c207f5b1a1 100644 --- a/drivers/input/joystick/gf2k.c +++ b/drivers/input/joystick/gf2k.c @@ -375,8 +375,7 @@ static struct gameport_driver gf2k_drv = { static int __init gf2k_init(void) { - gameport_register_driver(&gf2k_drv); - return 0; + return gameport_register_driver(&gf2k_drv); } static void __exit gf2k_exit(void) |