Searched hist:baff8da6e1636420ce04cadd6df56e137fa6e005 (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/net/wireless/realtek/rtw88/ |
H A D | phy.c | diff baff8da6e1636420ce04cadd6df56e137fa6e005 Fri Oct 25 06:30:56 CDT 2019 Colin Ian King <colin.king@canonical.com> 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>
|