Fixes wrong usage of the last parameter of module_param_named()
authorvlnb <vlnb@d57e44dd-8a1f-0410-8b47-8ef2f437770f>
Mon, 26 Jan 2009 12:57:22 +0000 (12:57 +0000)
committervlnb <vlnb@d57e44dd-8a1f-0410-8b47-8ef2f437770f>
Mon, 26 Jan 2009 12:57:22 +0000 (12:57 +0000)
git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@639 d57e44dd-8a1f-0410-8b47-8ef2f437770f

scst/src/dev_handlers/scst_vdisk.c

index 06a8896..847a550 100644 (file)
@@ -241,11 +241,11 @@ struct scst_vdisk_thr {
 
 static struct kmem_cache *vdisk_thr_cachep;
 
-static int num_threads;
-
 #define DEF_NUM_THREADS                5
 
-module_param_named(num_threads, num_threads, int, DEF_NUM_THREADS);
+static int num_threads = DEF_NUM_THREADS;
+
+module_param_named(num_threads, num_threads, int, 0);
 MODULE_PARM_DESC(num_threads, "vdisk threads count");
 
 static int vdisk_attach(struct scst_device *dev);