qcacld-3.0: Send the function return status up the call stack

hdd_wlan_clear_stats() invokes the function cdp_clear_stats(),
hdd_wlan_clear_stats() always returns 0 instead of returning the
callee return status.

Fix is to return the callee function return status up the call stack.

Change-Id: I591fb743d000463ffebd4207450de82ab7463a9c
CRs-Fixed: 2719088
Dieser Commit ist enthalten in:
Srinivas Girigowda
2020-06-25 12:01:03 -07:00
committet von nshrivas
Ursprung 68c954548f
Commit 589c525f8b

Datei anzeigen

@@ -9690,7 +9690,7 @@ int hdd_wlan_dump_stats(struct hdd_adapter *adapter, int stats_id)
int hdd_wlan_clear_stats(struct hdd_adapter *adapter, int stats_id)
{
QDF_STATUS status;
QDF_STATUS status = QDF_STATUS_SUCCESS;
hdd_debug("stats_id %d", stats_id);
@@ -9721,7 +9721,7 @@ int hdd_wlan_clear_stats(struct hdd_adapter *adapter, int stats_id)
break;
}
return 0;
return qdf_status_to_os_return(status);
}
void wlan_hdd_display_tx_rx_histogram(struct hdd_context *hdd_ctx)