From e5f0e052df437ea45b9c0ff22d723b645a160418 Mon Sep 17 00:00:00 2001 From: Vignesh U Date: Sun, 21 Jun 2020 16:04:04 +0530 Subject: [PATCH] qcacmn: Address compilation issue The function "ucfg_dfs_is_hw_pulses_allowed" should return bool and has a compilation error "return' with no value, in function returning non-void". Return the bool type "false" when the dfs is a NULL object. CRs-Fixed: 2715235 Change-Id: I8717aaedd1ac8208ce6257721d5890b82ca13a8f --- umac/dfs/dispatcher/src/wlan_dfs_ucfg_api.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/umac/dfs/dispatcher/src/wlan_dfs_ucfg_api.c b/umac/dfs/dispatcher/src/wlan_dfs_ucfg_api.c index 807255d2f290..dc5bf0c9c455 100644 --- a/umac/dfs/dispatcher/src/wlan_dfs_ucfg_api.c +++ b/umac/dfs/dispatcher/src/wlan_dfs_ucfg_api.c @@ -394,7 +394,7 @@ bool ucfg_dfs_is_hw_pulses_allowed(struct wlan_objmgr_pdev *pdev) dfs = wlan_pdev_get_dfs_obj(pdev); if (!dfs) { dfs_err(dfs, WLAN_DEBUG_DFS_ALWAYS, "dfs is NULL"); - return; + return false; } return dfs_is_hw_pulses_allowed(dfs);