qcacld-3.0: Fix static code analysis issues in DP

arg is reference before null check, move below

Change-Id: I5d815647b3968f93e2a86871711eb13f29cbd2f3
CRs-Fixed: 2752441
This commit is contained in:
Yu Tian 2020-08-11 11:22:02 +08:00 • committed by snandini
commit 914dee63f1

View file

@ -517,13 +517,13 @@ static int dp_rx_thread_loop(void *arg)
int status;
struct dp_rx_tm_handle_cmn *tm_handle_cmn;
tm_handle_cmn = rx_thread->rtm_handle_cmn;
if (!arg) {
dp_err("bad Args passed");
return 0;
}
tm_handle_cmn = rx_thread->rtm_handle_cmn;
qdf_set_user_nice(qdf_get_current_task(), -1);
qdf_set_wake_up_idle(true);