qcacmn: Remove unused local variables in spectral module

Remove unused local variables in the Spectral module to
address the compiler warnings.

CRs-Fixed: 3272706
Change-Id: I91c806a9bd6413eb559992a0b184d8bd9c4ea4d0
This commit is contained in:
Sreeramya Soratkal
2022-08-18 15:04:23 +05:30
committed by Madan Koyyalamudi
parent b1869bda53
commit 057bd5f570
2 changed files with 0 additions and 4 deletions

View File

@@ -6018,7 +6018,6 @@ target_if_start_spectral_scan(struct wlan_objmgr_pdev *pdev,
bool is_overlapping;
enum phy_ch_width ch_width[SPECTRAL_SCAN_MODE_MAX];
enum spectral_scan_mode m;
enum phy_ch_width op_ch_width;
enum phy_ch_width agile_ch_width;
m = SPECTRAL_SCAN_MODE_NORMAL;
@@ -6032,7 +6031,6 @@ target_if_start_spectral_scan(struct wlan_objmgr_pdev *pdev,
spectral_err("Failed to populate channel width");
return QDF_STATUS_E_FAILURE;
}
op_ch_width = ch_width[SPECTRAL_SCAN_MODE_NORMAL];
agile_ch_width = ch_width[SPECTRAL_SCAN_MODE_AGILE];
if (!spectral->params[smode].ss_frequency.cfreq1) {

View File

@@ -103,7 +103,6 @@ target_if_spectral_fill_samp_msg(struct target_if_spectral *spectral,
for (dest_det_idx = 0; dest_det_idx < det_map->num_dest_det_info;
dest_det_idx++) {
struct per_session_dest_det_info *map_det_info;
struct spectral_fft_bin_len_adj_swar *swar;
struct samp_freq_span_info *span_info;
struct samp_detector_info *detector_info;
uint8_t dest_detector_id;
@@ -116,7 +115,6 @@ target_if_spectral_fill_samp_msg(struct target_if_spectral *spectral,
uint16_t start_bin_index;
uint32_t bytes_copied;
swar = &spectral->len_adj_swar;
map_det_info = &det_map->dest_det_info[dest_det_idx];
span_id = map_det_info->freq_span_id;