aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/net_dropmonitor.py
diff options
context:
space:
mode:
authorPing-Ke Shih <[email protected]>2022-03-18 11:52:02 +0800
committerKalle Valo <[email protected]>2022-04-06 10:50:03 +0300
commit26bb93407c748d731f25581ccae196e1016072bf (patch)
treef2e135a138d37797f6771f72d31a2f92e3fb7382 /tools/perf/scripts/python/net_dropmonitor.py
parent84fc6999f0d01920687d8555e3f1bb87625a66ed (diff)
rtw89: handle potential uninitialized variable
The smatch reports: rtw8852a.c:1857 rtw8852a_btc_set_wl_txpwr_ctrl() error: uninitialized symbol '_cur'. rtw8852a.c:1858 rtw8852a_btc_set_wl_txpwr_ctrl() error: uninitialized symbol '_cur'. This is because rtw89_mac_txpwr_read32() can possibly return before setting argument _cur, and the caller will use the uninitialized value. To fix this problem, check the return value of rtw89_mac_txpwr_read32(). Signed-off-by: Ping-Ke Shih <[email protected]> Signed-off-by: Kalle Valo <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions