Input: gameport - check return value of gameport_register_driver()
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 6 Jun 2008 05:33:37 +0000 (01:33 -0400)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 30 Jul 2008 04:41:36 +0000 (00:41 -0400)
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
12 files changed:
drivers/input/joystick/a3d.c
drivers/input/joystick/adi.c
drivers/input/joystick/analog.c
drivers/input/joystick/cobra.c
drivers/input/joystick/gf2k.c
drivers/input/joystick/grip.c
drivers/input/joystick/grip_mp.c
drivers/input/joystick/guillemot.c
drivers/input/joystick/interact.c
drivers/input/joystick/joydump.c
drivers/input/joystick/sidewinder.c
drivers/input/joystick/tmdc.c

index 92498d4..6489f40 100644 (file)
@@ -414,8 +414,7 @@ static struct gameport_driver a3d_drv = {
 
 static int __init a3d_init(void)
 {
-       gameport_register_driver(&a3d_drv);
-       return 0;
+       return gameport_register_driver(&a3d_drv);
 }
 
 static void __exit a3d_exit(void)
index d1ca8a1..89c4c08 100644 (file)
@@ -572,8 +572,7 @@ static struct gameport_driver adi_drv = {
 
 static int __init adi_init(void)
 {
-       gameport_register_driver(&adi_drv);
-       return 0;
+       return gameport_register_driver(&adi_drv);
 }
 
 static void __exit adi_exit(void)
index 708c5ae..356b3a2 100644 (file)
@@ -761,9 +761,7 @@ static struct gameport_driver analog_drv = {
 static int __init analog_init(void)
 {
        analog_parse_options();
-       gameport_register_driver(&analog_drv);
-
-       return 0;
+       return gameport_register_driver(&analog_drv);
 }
 
 static void __exit analog_exit(void)
index 639b975..3497b87 100644 (file)
@@ -263,8 +263,7 @@ static struct gameport_driver cobra_drv = {
 
 static int __init cobra_init(void)
 {
-       gameport_register_driver(&cobra_drv);
-       return 0;
+       return gameport_register_driver(&cobra_drv);
 }
 
 static void __exit cobra_exit(void)
index cb6eef1..67c207f 100644 (file)
@@ -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)
index 684e07c..fc55899 100644 (file)
@@ -426,8 +426,7 @@ static struct gameport_driver grip_drv = {
 
 static int __init grip_init(void)
 {
-       gameport_register_driver(&grip_drv);
-       return 0;
+       return gameport_register_driver(&grip_drv);
 }
 
 static void __exit grip_exit(void)
index 8279481..2d47baf 100644 (file)
@@ -689,8 +689,7 @@ static struct gameport_driver grip_drv = {
 
 static int __init grip_init(void)
 {
-       gameport_register_driver(&grip_drv);
-       return 0;
+       return gameport_register_driver(&grip_drv);
 }
 
 static void __exit grip_exit(void)
index 25ec3fa..4058d4b 100644 (file)
@@ -283,8 +283,7 @@ static struct gameport_driver guillemot_drv = {
 
 static int __init guillemot_init(void)
 {
-       gameport_register_driver(&guillemot_drv);
-       return 0;
+       return gameport_register_driver(&guillemot_drv);
 }
 
 static void __exit guillemot_exit(void)
index 8c3290b..2478289 100644 (file)
@@ -317,8 +317,7 @@ static struct gameport_driver interact_drv = {
 
 static int __init interact_init(void)
 {
-       gameport_register_driver(&interact_drv);
-       return 0;
+       return gameport_register_driver(&interact_drv);
 }
 
 static void __exit interact_exit(void)
index 2a1b82c..cd894a0 100644 (file)
@@ -161,8 +161,7 @@ static struct gameport_driver joydump_drv = {
 
 static int __init joydump_init(void)
 {
-       gameport_register_driver(&joydump_drv);
-       return 0;
+       return gameport_register_driver(&joydump_drv);
 }
 
 static void __exit joydump_exit(void)
index 7b4865f..ca13a6b 100644 (file)
@@ -818,8 +818,7 @@ static struct gameport_driver sw_drv = {
 
 static int __init sw_init(void)
 {
-       gameport_register_driver(&sw_drv);
-       return 0;
+       return gameport_register_driver(&sw_drv);
 }
 
 static void __exit sw_exit(void)
index 60c37bc..d6c6098 100644 (file)
@@ -438,8 +438,7 @@ static struct gameport_driver tmdc_drv = {
 
 static int __init tmdc_init(void)
 {
-       gameport_register_driver(&tmdc_drv);
-       return 0;
+       return gameport_register_driver(&tmdc_drv);
 }
 
 static void __exit tmdc_exit(void)