diff options
| author | Oscar Carter <[email protected]> | 2020-05-10 11:09:50 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2020-05-13 13:58:44 +0200 |
| commit | 8a01032e02c8a0fb3e9f33791023b62dee73cc03 (patch) | |
| tree | 2484706a6c053f10a5bf4141268dd0b0fa392dc4 /tools/perf/scripts/python | |
| parent | 5353711bec8c30eaccca17fb131ff62c6cc924c8 (diff) | |
staging: vt6656: Remove logically dead code
In the start of the "vnt_rf_set_txpower" function the "power" variable
is set at most to VNT_RF_MAX_POWER (hex = 0x3f, dec = 63). Then, in the
switch statement there are four comparisons with the "power" variable
against AL7230_PWR_IDX_LEN (dec = 64), VT3226_PWR_IDX_LEN (dec = 64),
VT3342_PWR_IDX_LEN (dec = 64). Due to all the commented comparisons are
to check if the "power" variable is "greater than or equal" to 64, this
never happens. So, remove the logically dead code.
Also, remove all the defines that are no longer required.
Addresses-Coverity-ID: 1230228 ("Logically dead code")
Fixes: f53d9f12c51a ("staging: vt6656: rf.c additional power.")
Signed-off-by: Oscar Carter <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions