Browse Source

qcacld-3.0: Remove cds_upper_to_lower()

Utility function cds_upper_to_lower() is unused, so remove it.

Change-Id: I27464377fd10f0d3c4172ef4e3fe59ff6310aa61
CRs-Fixed: 2370775
Jeff Johnson 6 năm trước cách đây
mục cha
commit
6f3506eecc
2 tập tin đã thay đổi với 0 bổ sung18 xóa
  1. 0 8
      core/cds/inc/cds_utils.h
  2. 0 10
      core/cds/src/cds_utils.c

+ 0 - 8
core/cds/inc/cds_utils.h

@@ -109,14 +109,6 @@ uint32_t cds_chan_to_freq(uint8_t chan);
 uint8_t cds_freq_to_chan(uint32_t freq);
 enum cds_band_type cds_chan_to_band(uint32_t chan);
 
-/**
- * cds_upper_to_lower: API to convert upper case string into lower case
- * @txt: input text
- * @length: length of input string
- *
- * Return: None
- */
-void cds_upper_to_lower(uint8_t *txt, uint32_t length);
 #ifdef WLAN_FEATURE_11W
 bool cds_is_mmie_valid(uint8_t *key, uint8_t *ipn,
 		       uint8_t *frm, uint8_t *efrm);

+ 0 - 10
core/cds/src/cds_utils.c

@@ -659,16 +659,6 @@ uint8_t cds_freq_to_chan(uint32_t freq)
 	return chan;
 }
 
-void cds_upper_to_lower(uint8_t *txt, uint32_t length)
-{
-	int i;
-
-	for (i = 0; i < length; i++) {
-		if (txt[i] >= 'A' && txt[i] <= 'Z')
-			txt[i] = txt[i] + 32;
-	}
-}
-
 enum cds_band_type cds_chan_to_band(uint32_t chan)
 {
 	if (chan <= CDS_24_GHZ_CHANNEL_14)