From 6f3506eecc1a6e6efe0657cbed5b1e4c7fd58618 Mon Sep 17 00:00:00 2001 From: Jeff Johnson Date: Sun, 16 Dec 2018 11:43:15 -0800 Subject: [PATCH] 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 --- core/cds/inc/cds_utils.h | 8 -------- core/cds/src/cds_utils.c | 10 ---------- 2 files changed, 18 deletions(-) diff --git a/core/cds/inc/cds_utils.h b/core/cds/inc/cds_utils.h index 001aaa20ff42..b81e9b89942e 100644 --- a/core/cds/inc/cds_utils.h +++ b/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); diff --git a/core/cds/src/cds_utils.c b/core/cds/src/cds_utils.c index 428f8bd93093..de0d024f32c7 100644 --- a/core/cds/src/cds_utils.c +++ b/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)