staging: r8188eu: simplify odm_evm_db_to_percentage()

Use clamp() to simplify odm_evm_db_to_percentage().

Signed-off-by: Michael Straube <straube.linux@gmail.com>
Link: https://lore.kernel.org/r/20210730090948.32759-3-straube.linux@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Michael Straube 2021-07-30 11:09:48 +02:00 • committed by Greg Kroah-Hartman
commit 7bfeeb4f06