From eaf0cf59d00396aef5a7e446e7c0614dcc25d0c7 Mon Sep 17 00:00:00 2001 From: Deeksha Gupta Date: Mon, 24 Aug 2020 14:52:28 +0530 Subject: [PATCH] qcacmn: Remove redundant print from scm_update_rnr_info() Whenever there is a scm_update_rnr_info() function call, print is flooded in each scan. It is not giving any additional information. Remove the print "scm_debug("Failed to get meta, freq %d", freq)" Change-Id: Id6adda855e1d181704d8c69c10e4d041af758e43 CRs-Fixed: 2761408 --- umac/scan/core/src/wlan_scan_manager.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/umac/scan/core/src/wlan_scan_manager.c b/umac/scan/core/src/wlan_scan_manager.c index 9db8a082710d..1c259bc53a97 100644 --- a/umac/scan/core/src/wlan_scan_manager.c +++ b/umac/scan/core/src/wlan_scan_manager.c @@ -1049,11 +1049,7 @@ static void scm_update_rnr_info(struct wlan_objmgr_psoc *psoc, freq = chan_list->chan[i].freq; chan = scm_get_chan_meta(psoc, freq); - if (!chan) { - scm_debug("Failed to get meta, freq %d", freq); - continue; - } - if (qdf_list_empty(&chan->rnr_list)) + if (!chan || qdf_list_empty(&chan->rnr_list)) continue; qdf_list_peek_front(&chan->rnr_list, &cur_node);