Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Dec 2018 12:03:33 +0000 (UTC)
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org
Subject:   svn commit: r341923 - in stable/12/sys/dev/mlx5: mlx5_core mlx5_en
Message-ID:  <201812121203.wBCC3XQU069129@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: hselasky
Date: Wed Dec 12 12:03:33 2018
New Revision: 341923
URL: https://svnweb.freebsd.org/changeset/base/341923

Log:
  MFC r341555:
  mlx5: Discard unused return values.
  
  Sponsored by:   Mellanox Technologies

Modified:
  stable/12/sys/dev/mlx5/mlx5_core/mlx5_pagealloc.c
  stable/12/sys/dev/mlx5/mlx5_en/mlx5_en_rl.c
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/sys/dev/mlx5/mlx5_core/mlx5_pagealloc.c
==============================================================================
--- stable/12/sys/dev/mlx5/mlx5_core/mlx5_pagealloc.c	Wed Dec 12 12:02:06 2018	(r341922)
+++ stable/12/sys/dev/mlx5/mlx5_core/mlx5_pagealloc.c	Wed Dec 12 12:03:33 2018	(r341923)
@@ -128,7 +128,7 @@ mlx5_fwp_alloc(struct mlx5_core_dev *dev, gfp_t flags,
 
 		/* load memory into DMA */
 		MLX5_DMA_LOCK(dev);
-		err = bus_dmamap_load(
+		(void) bus_dmamap_load(
 		    dev->cmd.dma_tag, fwp[x].dma_map, fwp[x].virt_addr,
 		    MLX5_ADAPTER_PAGE_SIZE, &mlx5_fwp_load_mem_cb,
 		    fwp + x, BUS_DMA_WAITOK | BUS_DMA_COHERENT);

Modified: stable/12/sys/dev/mlx5/mlx5_en/mlx5_en_rl.c
==============================================================================
--- stable/12/sys/dev/mlx5/mlx5_en/mlx5_en_rl.c	Wed Dec 12 12:02:06 2018	(r341922)
+++ stable/12/sys/dev/mlx5/mlx5_en/mlx5_en_rl.c	Wed Dec 12 12:03:33 2018	(r341923)
@@ -421,7 +421,6 @@ mlx5e_rlw_channel_set_rate_locked(struct mlx5e_rl_work
 
 		if (rate == 0) {
 			/* rate doesn't exist, fallback to unlimited */
-			error = EINVAL;
 			index = 0;
 			rate = 0;
 			atomic_add_64(&rlw->priv->rl.stats.tx_modify_rate_failure, 1ULL);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201812121203.wBCC3XQU069129>