Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1299333 > unrolled thread

[PATCH] iwlegacy: 4965-mac: constify il_sensitivity_ranges structure

Started byJulia Lawall <Julia.Lawall@lip6.fr>
First post2015-12-30 12:40 +0100
Last post2015-12-30 12:40 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH] iwlegacy: 4965-mac: constify il_sensitivity_ranges structure Julia Lawall <Julia.Lawall@lip6.fr> - 2015-12-30 12:40 +0100

#1299333 — [PATCH] iwlegacy: 4965-mac: constify il_sensitivity_ranges structure

FromJulia Lawall <Julia.Lawall@lip6.fr>
Date2015-12-30 12:40 +0100
Subject[PATCH] iwlegacy: 4965-mac: constify il_sensitivity_ranges structure
Message-ID<qLngJ-60i-15@gated-at.bofh.it>
The il_sensitivity_ranges is never modified, so declare it as const.

Done with the help of Coccinelle.

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>

---
 drivers/net/wireless/intel/iwlegacy/4965-mac.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/wireless/intel/iwlegacy/4965-mac.c b/drivers/net/wireless/intel/iwlegacy/4965-mac.c
index 6656215..fd38aa0 100644
--- a/drivers/net/wireless/intel/iwlegacy/4965-mac.c
+++ b/drivers/net/wireless/intel/iwlegacy/4965-mac.c
@@ -6416,7 +6416,7 @@ il4965_hw_detect(struct il_priv *il)
 	D_INFO("HW Revision ID = 0x%X\n", il->rev_id);
 }
 
-static struct il_sensitivity_ranges il4965_sensitivity = {
+static const struct il_sensitivity_ranges il4965_sensitivity = {
 	.min_nrg_cck = 97,
 	.max_nrg_cck = 0,	/* not used, set to 0 */
 

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web