Re: [PATCH v2] staging: r8188eu: use max() and min() macros

From: Dan Carpenter
Date: Thu Nov 25 2021 - 02:02:36 EST


On Thu, Nov 25, 2021 at 12:34:36AM +0530, Vihas Mak wrote:
> use max() and min() macros to fix following cocci warnings:
>
> drivers/staging/r8188eu/core/rtw_wlan_util.c:719: WARNING opportunity for min()
> drivers/staging/r8188eu/core/rtw_wlan_util.c:724: WARNING opportunity for max()
>
> Signed-off-by: Vihas Mak <makvihas@xxxxxxxxx>
> ---
> v1 -> v2:
> - fixed checkpatch issues (parenthesis alignment).

Looks good. Thanks!

Reviewed-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx>

regards,
dan carpenter