staging: r8188eu: replace ternary operator with min, max, abs macros
authorMichael Straube <straube.linux@gmail.com>
Mon, 31 Oct 2022 15:37:43 +0000 (16:37 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 2 Nov 2022 07:17:22 +0000 (08:17 +0100)
commit3032eb4690d5d5bac28d0e92cc501962a42ca4be
treea6a06e0c254b89a8bb7f04ab12df79ed4f9a29b6
parentaa69ca7d6d6cd2ed2209b4b6c102f2fec3e97012
staging: r8188eu: replace ternary operator with min, max, abs macros

Replace some ternary operators with the min(), max() or abs() macros
to improve readability.

Tested-by: Philipp Hortmann <philipp.g.hortmann@gmail.com> # Edimax N150
Signed-off-by: Michael Straube <straube.linux@gmail.com>
Link: https://lore.kernel.org/r/20221031153743.8801-1-straube.linux@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/core/rtw_xmit.c
drivers/staging/r8188eu/hal/HalPhyRf_8188e.c
drivers/staging/r8188eu/hal/odm_RTL8188E.c