staging: rtl8723bs: Use min/max macros for variable comparison
authorDeepak R Varma <drv@mailo.com>
Thu, 3 Nov 2022 09:33:29 +0000 (15:03 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 8 Nov 2022 15:26:10 +0000 (16:26 +0100)
commit6c6ff293337b62c0c646d1ede2e9962f7501f9e4
tree49dec7069054280bf3e1b4a6a4c64217fd064e5c
parentf541335e830eb1abf3e4e260fcef98c429165aac
staging: rtl8723bs: Use min/max macros for variable comparison

Simplify code by using min and max helper macros in place of lengthy
if/else block oriented logical evaluation and value assignment. This
issue is identified by coccicheck using the minmax.cocci file.

Signed-off-by: Deepak R Varma <drv@mailo.com>
Link: https://lore.kernel.org/r/Y2OK6fcIkH3S2/1f@qemulion
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/core/rtw_wlan_util.c
drivers/staging/rtl8723bs/hal/odm_DIG.c