diff options
author | Colin Ian King <colin.king@canonical.com> | 2019-10-25 12:30:56 +0100 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2019-10-31 10:04:55 +0200 |
commit | baff8da6e1636420ce04cadd6df56e137fa6e005 (patch) | |
tree | 64724710e472f2ecb9b0899e19ce0d877b4fa765 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 5195b904264098839144d08d23c600811de2e2da (diff) |
rtw88: remove redundant null pointer check on arrays
The checks to see if swing_table->n or swing_table->p are null are
redundant since n and p are arrays and can never be null if
swing_table is non-null. I believe these are redundant checks
and can be safely removed, especially the checks implies that these
are not arrays which can lead to confusion.
Addresses-Coverity: ("Array compared against 0")
Fixes: c97ee3e0bea2 ("rtw88: add power tracking support")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions