From 914dee63f1d894c9c67fddb8efdacf5bc0d55c56 Mon Sep 17 00:00:00 2001 From: Yu Tian Date: Tue, 11 Aug 2020 11:22:02 +0800 Subject: [PATCH] qcacld-3.0: Fix static code analysis issues in DP arg is reference before null check, move below Change-Id: I5d815647b3968f93e2a86871711eb13f29cbd2f3 CRs-Fixed: 2752441 --- core/dp/txrx3.0/dp_rx_thread.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/dp/txrx3.0/dp_rx_thread.c b/core/dp/txrx3.0/dp_rx_thread.c index bdb569ad9aca..34440ff8d8bf 100644 --- a/core/dp/txrx3.0/dp_rx_thread.c +++ b/core/dp/txrx3.0/dp_rx_thread.c @@ -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);