RE: [PATCH v2] ice: use min_t() to make code cleaner in ice_gnss
From: G, GurucharanX
Date: Tue Apr 05 2022 - 00:51:13 EST
> -----Original Message-----
> From: Wan Jiabing <wanjiabing@xxxxxxxx>
> Sent: Monday, March 21, 2022 7:30 PM
> To: Brandeburg, Jesse <jesse.brandeburg@xxxxxxxxx>; Nguyen, Anthony L
> <anthony.l.nguyen@xxxxxxxxx>; David S. Miller <davem@xxxxxxxxxxxxx>;
> Jakub Kicinski <kuba@xxxxxxxxxx>; Paolo Abeni <pabeni@xxxxxxxxxx>;
> intel-wired-lan@xxxxxxxxxxxxxxxx; netdev@xxxxxxxxxxxxxxx; linux-
> kernel@xxxxxxxxxxxxxxx
> Cc: Lobakin, Alexandr <alexandr.lobakin@xxxxxxxxx>; Wan Jiabing
> <wanjiabing@xxxxxxxx>
> Subject: [PATCH v2] ice: use min_t() to make code cleaner in ice_gnss
>
> Fix the following coccicheck warning:
> ./drivers/net/ethernet/intel/ice/ice_gnss.c:79:26-27: WARNING opportunity
> for min()
>
> Signed-off-by: Wan Jiabing <wanjiabing@xxxxxxxx>
> ---
> Changelog:
> v2:
> - Use typeof(bytes_left) instead of u8.
> ---
> drivers/net/ethernet/intel/ice/ice_gnss.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
Tested-by: Gurucharan <gurucharanx.g@xxxxxxxxx> (A Contingent worker at Intel)