staging: rtlwifi: Remove function that only returns the second argument
commit948569b72a5daf62559df764f37d5dc39dc76ef7
authorMaya Nakamura <m.maya.nakamura@gmail.com>
Sat, 27 Oct 2018 10:15:03 +0000 (27 03:15 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 5 Nov 2018 13:16:33 +0000 (5 14:16 +0100)
tree54ef29318989dcbd98b419961f91ffe1890b2db6
parent2c66f2a9efd9cdba235e9d41de544e23ccdb8700
staging: rtlwifi: Remove function that only returns the second argument

Because the odm_signal_scale_mapping function is only called to return the
second argument, remove the unnecessary function and change the statements
that call it, including removing unneeded braces and adding a blank line.

Note that removing casts (u8 to s32 and back to u8) will not lose
information because the value converted should be between 0 and 100.

Signed-off-by: Maya Nakamura <m.maya.nakamura@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtlwifi/phydm/phydm_hwconfig.c
drivers/staging/rtlwifi/phydm/phydm_hwconfig.h