mirror of
https://github.com/torvalds/linux.git
synced 2024-11-28 07:01:32 +00:00
Input: gameport - check return value of gameport_register_driver()
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
This commit is contained in:
parent
6902c0bead
commit
2547203d58
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user