[PATCH 1/1] staging: rtl8192ee: Fix compilation warning

Sachin Kamat sachin.kamat at linaro.org
Thu May 29 10:48:06 UTC 2014


Fixes the below warnings:
drivers/staging/rtl8192ee/core.c:342:14: warning: assignment discards ‘const’ qualifier from pointer target type [enabled by default]
drivers/staging/rtl8192ee/core.c:344:11: warning: assignment discards ‘const’ qualifier from pointer target type [enabled by default]

Signed-off-by: Sachin Kamat <sachin.kamat at linaro.org>
---
 drivers/staging/rtl8192ee/core.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/rtl8192ee/core.c b/drivers/staging/rtl8192ee/core.c
index 76ea356163b6..8b8795450375 100644
--- a/drivers/staging/rtl8192ee/core.c
+++ b/drivers/staging/rtl8192ee/core.c
@@ -322,7 +322,7 @@ static void _rtl_add_wowlan_patterns(struct ieee80211_hw *hw,
 	struct rtl_mac *mac = &(rtlpriv->mac80211);
 	struct cfg80211_pkt_pattern *patterns = wow->patterns;
 	struct rtl_wow_pattern rtl_pattern;
-	u8 *pattern_os, *mask_os;
+	const u8 *pattern_os, *mask_os;
 	u8 mask[MAX_WOL_BIT_MASK_SIZE] = {0};
 	u8 content[MAX_WOL_PATTERN_SIZE] = {0};
 	u8 broadcast_addr[6] = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff};
-- 
1.7.9.5



More information about the devel mailing list