staging: rtl8192u: simplify rtl819x_evm_dbtopercentage()
authorMichael Straube <straube.linux@gmail.com>
Sat, 18 Jan 2020 19:53:04 +0000 (20:53 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Jan 2020 08:44:45 +0000 (09:44 +0100)
commit38c03040e24f7066cfa5b1718d07f0700ecb400b
tree1b4a2e49f015dc489ce5e1628e5e5228ad19d5e5
parent05ecd1038b0c06c4546e28fbe67732c3fa28ae10
staging: rtl8192u: simplify rtl819x_evm_dbtopercentage()

Use clamp() to simplify function rtl819x_evm_dbtopercentage() and
reduce object file size.

Signed-off-by: Michael Straube <straube.linux@gmail.com>
Link: https://lore.kernel.org/r/20200118195305.16685-2-straube.linux@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192u/r8192U_core.c