Commit f4211d1a authored by David Binder's avatar David Binder Committed by Greg Kroah-Hartman

staging: unisys: visorbus: remove unused module parameters

Removes unused module parameters from visorbus_main.c, in response to
findings by SonarQube.
Signed-off-by: default avatarDavid Binder <david.binder@unisys.com>
Signed-off-by: default avatarDavid Kershner <david.kershner@unisys.com>
Reviewed-by: default avatarTim Sell <Timothy.Sell@unisys.com>
Acked-By: default avatarNeil Horman <nhorman@tuxdriver.com>
Reviewed-by: default avatarThomas Gleixner <tglx@linutronix.de>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 80224f06
...@@ -27,10 +27,9 @@ ...@@ -27,10 +27,9 @@
#define MYDRVNAME "visorbus" #define MYDRVNAME "visorbus"
/* module parameters */ /* module parameters */
static int visorbus_debug;
static int visorbus_forcematch; static int visorbus_forcematch;
static int visorbus_forcenomatch; static int visorbus_forcenomatch;
static int visorbus_debugref;
#define SERIALLOOPBACKCHANADDR (100 * 1024 * 1024) #define SERIALLOOPBACKCHANADDR (100 * 1024 * 1024)
/* Display string that is guaranteed to be no longer the 99 characters*/ /* Display string that is guaranteed to be no longer the 99 characters*/
...@@ -1332,9 +1331,6 @@ visorbus_exit(void) ...@@ -1332,9 +1331,6 @@ visorbus_exit(void)
remove_bus_type(); remove_bus_type();
} }
module_param_named(debug, visorbus_debug, int, S_IRUGO);
MODULE_PARM_DESC(visorbus_debug, "1 to debug");
module_param_named(forcematch, visorbus_forcematch, int, S_IRUGO); module_param_named(forcematch, visorbus_forcematch, int, S_IRUGO);
MODULE_PARM_DESC(visorbus_forcematch, MODULE_PARM_DESC(visorbus_forcematch,
"1 to force a successful dev <--> drv match"); "1 to force a successful dev <--> drv match");
...@@ -1342,6 +1338,3 @@ MODULE_PARM_DESC(visorbus_forcematch, ...@@ -1342,6 +1338,3 @@ MODULE_PARM_DESC(visorbus_forcematch,
module_param_named(forcenomatch, visorbus_forcenomatch, int, S_IRUGO); module_param_named(forcenomatch, visorbus_forcenomatch, int, S_IRUGO);
MODULE_PARM_DESC(visorbus_forcenomatch, MODULE_PARM_DESC(visorbus_forcenomatch,
"1 to force an UNsuccessful dev <--> drv match"); "1 to force an UNsuccessful dev <--> drv match");
module_param_named(debugref, visorbus_debugref, int, S_IRUGO);
MODULE_PARM_DESC(visorbus_debugref, "1 to debug reference counting");
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment