]> git.baikalelectronics.ru Git - kernel.git/commit
staging: rtl8723bs: remove temporary variable CrystalCap
authorColin Ian King <colin.king@canonical.com>
Sun, 23 Feb 2020 15:14:38 +0000 (15:14 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 23 Feb 2020 18:20:49 +0000 (19:20 +0100)
commit54b9a60d25ecd9248a52bc16a2634f4aea44942f
treee1bdb7c575896a14d31d3b72a9d2848fcc5d23eb
parent1c6e55593ac9e4f202ee278c9674164046dda07d
staging: rtl8723bs: remove temporary variable CrystalCap

Currently variable CrystalCap is being initialized with the value
0x20 that is never read so that is redundant and can be removed.
Clean up the code by removing the need for variable CrystalCap
since the calculation of the return value is relatively simple.

Addresses-Coverity: ("Unused Value")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Link: https://lore.kernel.org/r/20200223151438.415542-1-colin.king@canonical.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/hal/odm_CfoTracking.c