Explorar o código

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
Sreeramya Soratkal %!s(int64=2) %!d(string=hai) anos
pai
achega
057bd5f570

+ 0 - 2
target_if/spectral/target_if_spectral.c

@@ -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) {

+ 0 - 2
target_if/spectral/target_if_spectral_netlink.c

@@ -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;