[PATCH net-next 25/33] net: spacemit: k1_emac: Remove comma after sentinel-entry in match-table

Vivian Wang wangruikang at iscas.ac.cn
Fri Sep 4 07:19:27 PDT 2026


On 9/4/26 12:36, Siddharth Vadapalli wrote:

> Since sentinel is the last entry and we do not expect further entries
> following it, remove the comma.
>
> Signed-off-by: Siddharth Vadapalli <s-vadapalli at ti.com>
> ---
>  drivers/net/ethernet/spacemit/k1_emac.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/net/ethernet/spacemit/k1_emac.c b/drivers/net/ethernet/spacemit/k1_emac.c
> index f7f16397a2c2..29385d78fc4b 100644
> --- a/drivers/net/ethernet/spacemit/k1_emac.c
> +++ b/drivers/net/ethernet/spacemit/k1_emac.c
> @@ -1161,7 +1161,7 @@ static const struct ethtool_rmon_hist_range emac_rmon_hist_ranges[] = {
>  	{  512, 1023 },
>  	{ 1024, 1518 },
>  	{ 1519, 4096 },
> -	{ /* sentinel */ },
> +	{ /* sentinel */ }
>  };
>  
>  /* Like dev_fetch_dstats(), but we only use tx_drops */
> @@ -2066,7 +2066,7 @@ static const struct dev_pm_ops emac_pm_ops = {
>  
>  static const struct of_device_id emac_of_match[] = {
>  	{ .compatible = "spacemit,k1-emac" },
> -	{ /* sentinel */ },
> +	{ /* sentinel */ }
>  };
>  MODULE_DEVICE_TABLE(of, emac_of_match);
>  

Acked-by: Vivian Wang <wangruikang at iscas.ac.cn>

Regards,
Vivian "dramforever" Wang




More information about the linux-riscv mailing list