Skip to content
Commit 392c226c authored by Gan Yi Fang's avatar Gan Yi Fang Committed by Paolo Abeni
Browse files

net: stmmac: Remove redundant checking for rx_coalesce_usecs



The datatype of rx_coalesce_usecs is u32, always larger or equal to zero.
Previous checking does not include value 0, this patch removes the
checking to handle the value 0. This change in behaviour making the
value of 0 cause an error is not a problem because 0 is out of
range of rx_coalesce_usecs.

Signed-off-by: default avatarGan Yi Fang <yi.fang.gan@intel.com>
Link: https://lore.kernel.org/r/20231018030802.741923-1-yi.fang.gan@intel.com


Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
parent b91f2e13
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment