diff options
author | Joe Carnuccio <joe.carnuccio@qlogic.com> | 2010-12-21 19:00:22 -0500 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2010-12-23 17:06:18 -0500 |
commit | f2019cb117f29ffaff961b5f6d5b3148d473de1d (patch) | |
tree | c3755a97ec722b07c4892ac2c5f3ee46803eac53 /drivers/scsi | |
parent | 794a5691147652387f4a2ffa890c5c1983e38849 (diff) |
[SCSI] qla2xxx: Remove redundant module parameter permission bits
For driver module parameters that have permission bits set to
(S_IRUGO|S_IRUSR), remove the second term since it is already
included in the first term.
S_IRUGO comes defined as (S_IRUSR|S_IRGRP|S_IROTH).
Signed-off-by: Joe Carnuccio <joe.carnuccio@qlogic.com>
Signed-off-by: Madhuranath Iyengar <Madhu.Iyengar@qlogic.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi')
-rw-r--r-- | drivers/scsi/qla2xxx/qla_os.c | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/drivers/scsi/qla2xxx/qla_os.c b/drivers/scsi/qla2xxx/qla_os.c index 1814df868526..51e944fafdc6 100644 --- a/drivers/scsi/qla2xxx/qla_os.c +++ b/drivers/scsi/qla2xxx/qla_os.c | |||
@@ -37,12 +37,12 @@ static struct kmem_cache *srb_cachep; | |||
37 | static struct kmem_cache *ctx_cachep; | 37 | static struct kmem_cache *ctx_cachep; |
38 | 38 | ||
39 | int ql2xlogintimeout = 20; | 39 | int ql2xlogintimeout = 20; |
40 | module_param(ql2xlogintimeout, int, S_IRUGO|S_IRUSR); | 40 | module_param(ql2xlogintimeout, int, S_IRUGO); |
41 | MODULE_PARM_DESC(ql2xlogintimeout, | 41 | MODULE_PARM_DESC(ql2xlogintimeout, |
42 | "Login timeout value in seconds."); | 42 | "Login timeout value in seconds."); |
43 | 43 | ||
44 | int qlport_down_retry; | 44 | int qlport_down_retry; |
45 | module_param(qlport_down_retry, int, S_IRUGO|S_IRUSR); | 45 | module_param(qlport_down_retry, int, S_IRUGO); |
46 | MODULE_PARM_DESC(qlport_down_retry, | 46 | MODULE_PARM_DESC(qlport_down_retry, |
47 | "Maximum number of command retries to a port that returns " | 47 | "Maximum number of command retries to a port that returns " |
48 | "a PORT-DOWN status."); | 48 | "a PORT-DOWN status."); |
@@ -55,12 +55,12 @@ MODULE_PARM_DESC(ql2xplogiabsentdevice, | |||
55 | "Default is 0 - no PLOGI. 1 - perfom PLOGI."); | 55 | "Default is 0 - no PLOGI. 1 - perfom PLOGI."); |
56 | 56 | ||
57 | int ql2xloginretrycount = 0; | 57 | int ql2xloginretrycount = 0; |
58 | module_param(ql2xloginretrycount, int, S_IRUGO|S_IRUSR); | 58 | module_param(ql2xloginretrycount, int, S_IRUGO); |
59 | MODULE_PARM_DESC(ql2xloginretrycount, | 59 | MODULE_PARM_DESC(ql2xloginretrycount, |
60 | "Specify an alternate value for the NVRAM login retry count."); | 60 | "Specify an alternate value for the NVRAM login retry count."); |
61 | 61 | ||
62 | int ql2xallocfwdump = 1; | 62 | int ql2xallocfwdump = 1; |
63 | module_param(ql2xallocfwdump, int, S_IRUGO|S_IRUSR); | 63 | module_param(ql2xallocfwdump, int, S_IRUGO); |
64 | MODULE_PARM_DESC(ql2xallocfwdump, | 64 | MODULE_PARM_DESC(ql2xallocfwdump, |
65 | "Option to enable allocation of memory for a firmware dump " | 65 | "Option to enable allocation of memory for a firmware dump " |
66 | "during HBA initialization. Memory allocation requirements " | 66 | "during HBA initialization. Memory allocation requirements " |
@@ -73,7 +73,7 @@ MODULE_PARM_DESC(ql2xextended_error_logging, | |||
73 | "Default is 0 - no logging. 1 - log errors."); | 73 | "Default is 0 - no logging. 1 - log errors."); |
74 | 74 | ||
75 | int ql2xshiftctondsd = 6; | 75 | int ql2xshiftctondsd = 6; |
76 | module_param(ql2xshiftctondsd, int, S_IRUGO|S_IRUSR); | 76 | module_param(ql2xshiftctondsd, int, S_IRUGO); |
77 | MODULE_PARM_DESC(ql2xshiftctondsd, | 77 | MODULE_PARM_DESC(ql2xshiftctondsd, |
78 | "Set to control shifting of command type processing " | 78 | "Set to control shifting of command type processing " |
79 | "based on total number of SG elements."); | 79 | "based on total number of SG elements."); |
@@ -81,7 +81,7 @@ MODULE_PARM_DESC(ql2xshiftctondsd, | |||
81 | static void qla2x00_free_device(scsi_qla_host_t *); | 81 | static void qla2x00_free_device(scsi_qla_host_t *); |
82 | 82 | ||
83 | int ql2xfdmienable=1; | 83 | int ql2xfdmienable=1; |
84 | module_param(ql2xfdmienable, int, S_IRUGO|S_IRUSR); | 84 | module_param(ql2xfdmienable, int, S_IRUGO); |
85 | MODULE_PARM_DESC(ql2xfdmienable, | 85 | MODULE_PARM_DESC(ql2xfdmienable, |
86 | "Enables FDMI registrations. " | 86 | "Enables FDMI registrations. " |
87 | "0 - no FDMI. Default is 1 - perform FDMI."); | 87 | "0 - no FDMI. Default is 1 - perform FDMI."); |
@@ -106,27 +106,27 @@ MODULE_PARM_DESC(ql2xenablehba_err_chk, | |||
106 | " Default is 0 - Error isolation disabled, 1 - Enable it"); | 106 | " Default is 0 - Error isolation disabled, 1 - Enable it"); |
107 | 107 | ||
108 | int ql2xiidmaenable=1; | 108 | int ql2xiidmaenable=1; |
109 | module_param(ql2xiidmaenable, int, S_IRUGO|S_IRUSR); | 109 | module_param(ql2xiidmaenable, int, S_IRUGO); |
110 | MODULE_PARM_DESC(ql2xiidmaenable, | 110 | MODULE_PARM_DESC(ql2xiidmaenable, |
111 | "Enables iIDMA settings " | 111 | "Enables iIDMA settings " |
112 | "Default is 1 - perform iIDMA. 0 - no iIDMA."); | 112 | "Default is 1 - perform iIDMA. 0 - no iIDMA."); |
113 | 113 | ||
114 | int ql2xmaxqueues = 1; | 114 | int ql2xmaxqueues = 1; |
115 | module_param(ql2xmaxqueues, int, S_IRUGO|S_IRUSR); | 115 | module_param(ql2xmaxqueues, int, S_IRUGO); |
116 | MODULE_PARM_DESC(ql2xmaxqueues, | 116 | MODULE_PARM_DESC(ql2xmaxqueues, |
117 | "Enables MQ settings " | 117 | "Enables MQ settings " |
118 | "Default is 1 for single queue. Set it to number " | 118 | "Default is 1 for single queue. Set it to number " |
119 | "of queues in MQ mode."); | 119 | "of queues in MQ mode."); |
120 | 120 | ||
121 | int ql2xmultique_tag; | 121 | int ql2xmultique_tag; |
122 | module_param(ql2xmultique_tag, int, S_IRUGO|S_IRUSR); | 122 | module_param(ql2xmultique_tag, int, S_IRUGO); |
123 | MODULE_PARM_DESC(ql2xmultique_tag, | 123 | MODULE_PARM_DESC(ql2xmultique_tag, |
124 | "Enables CPU affinity settings for the driver " | 124 | "Enables CPU affinity settings for the driver " |
125 | "Default is 0 for no affinity of request and response IO. " | 125 | "Default is 0 for no affinity of request and response IO. " |
126 | "Set it to 1 to turn on the cpu affinity."); | 126 | "Set it to 1 to turn on the cpu affinity."); |
127 | 127 | ||
128 | int ql2xfwloadbin; | 128 | int ql2xfwloadbin; |
129 | module_param(ql2xfwloadbin, int, S_IRUGO|S_IRUSR); | 129 | module_param(ql2xfwloadbin, int, S_IRUGO); |
130 | MODULE_PARM_DESC(ql2xfwloadbin, | 130 | MODULE_PARM_DESC(ql2xfwloadbin, |
131 | "Option to specify location from which to load ISP firmware:\n" | 131 | "Option to specify location from which to load ISP firmware:\n" |
132 | " 2 -- load firmware via the request_firmware() (hotplug)\n" | 132 | " 2 -- load firmware via the request_firmware() (hotplug)\n" |
@@ -135,39 +135,39 @@ MODULE_PARM_DESC(ql2xfwloadbin, | |||
135 | " 0 -- use default semantics.\n"); | 135 | " 0 -- use default semantics.\n"); |
136 | 136 | ||
137 | int ql2xetsenable; | 137 | int ql2xetsenable; |
138 | module_param(ql2xetsenable, int, S_IRUGO|S_IRUSR); | 138 | module_param(ql2xetsenable, int, S_IRUGO); |
139 | MODULE_PARM_DESC(ql2xetsenable, | 139 | MODULE_PARM_DESC(ql2xetsenable, |
140 | "Enables firmware ETS burst." | 140 | "Enables firmware ETS burst." |
141 | "Default is 0 - skip ETS enablement."); | 141 | "Default is 0 - skip ETS enablement."); |
142 | 142 | ||
143 | int ql2xdbwr = 1; | 143 | int ql2xdbwr = 1; |
144 | module_param(ql2xdbwr, int, S_IRUGO|S_IRUSR); | 144 | module_param(ql2xdbwr, int, S_IRUGO); |
145 | MODULE_PARM_DESC(ql2xdbwr, | 145 | MODULE_PARM_DESC(ql2xdbwr, |
146 | "Option to specify scheme for request queue posting\n" | 146 | "Option to specify scheme for request queue posting\n" |
147 | " 0 -- Regular doorbell.\n" | 147 | " 0 -- Regular doorbell.\n" |
148 | " 1 -- CAMRAM doorbell (faster).\n"); | 148 | " 1 -- CAMRAM doorbell (faster).\n"); |
149 | 149 | ||
150 | int ql2xdontresethba; | 150 | int ql2xdontresethba; |
151 | module_param(ql2xdontresethba, int, S_IRUGO|S_IRUSR); | 151 | module_param(ql2xdontresethba, int, S_IRUGO); |
152 | MODULE_PARM_DESC(ql2xdontresethba, | 152 | MODULE_PARM_DESC(ql2xdontresethba, |
153 | "Option to specify reset behaviour\n" | 153 | "Option to specify reset behaviour\n" |
154 | " 0 (Default) -- Reset on failure.\n" | 154 | " 0 (Default) -- Reset on failure.\n" |
155 | " 1 -- Do not reset on failure.\n"); | 155 | " 1 -- Do not reset on failure.\n"); |
156 | 156 | ||
157 | int ql2xtargetreset = 1; | 157 | int ql2xtargetreset = 1; |
158 | module_param(ql2xtargetreset, int, S_IRUGO|S_IRUSR); | 158 | module_param(ql2xtargetreset, int, S_IRUGO); |
159 | MODULE_PARM_DESC(ql2xtargetreset, | 159 | MODULE_PARM_DESC(ql2xtargetreset, |
160 | "Enable target reset." | 160 | "Enable target reset." |
161 | "Default is 1 - use hw defaults."); | 161 | "Default is 1 - use hw defaults."); |
162 | 162 | ||
163 | int ql2xgffidenable; | 163 | int ql2xgffidenable; |
164 | module_param(ql2xgffidenable, int, S_IRUGO|S_IRUSR); | 164 | module_param(ql2xgffidenable, int, S_IRUGO); |
165 | MODULE_PARM_DESC(ql2xgffidenable, | 165 | MODULE_PARM_DESC(ql2xgffidenable, |
166 | "Enables GFF_ID checks of port type. " | 166 | "Enables GFF_ID checks of port type. " |
167 | "Default is 0 - Do not use GFF_ID information."); | 167 | "Default is 0 - Do not use GFF_ID information."); |
168 | 168 | ||
169 | int ql2xasynctmfenable; | 169 | int ql2xasynctmfenable; |
170 | module_param(ql2xasynctmfenable, int, S_IRUGO|S_IRUSR); | 170 | module_param(ql2xasynctmfenable, int, S_IRUGO); |
171 | MODULE_PARM_DESC(ql2xasynctmfenable, | 171 | MODULE_PARM_DESC(ql2xasynctmfenable, |
172 | "Enables issue of TM IOCBs asynchronously via IOCB mechanism" | 172 | "Enables issue of TM IOCBs asynchronously via IOCB mechanism" |
173 | "Default is 0 - Issue TM IOCBs via mailbox mechanism."); | 173 | "Default is 0 - Issue TM IOCBs via mailbox mechanism."); |