mlx5: Discard unused return values.

Submitted by:   hselasky@
Approved by:    hselasky (mentor)
MFC after:      1 week
Sponsored by:   Mellanox Technologies
This commit is contained in:
Slava Shwartsman 2018-12-05 13:41:06 +00:00
parent 843a89d37e
commit 07b624ed71
2 changed files with 1 additions and 2 deletions

View File

@ -128,7 +128,7 @@ mlx5_fwp_alloc(struct mlx5_core_dev *dev, gfp_t flags, unsigned num)
/* 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);

View File

@ -421,7 +421,6 @@ mlx5e_rlw_channel_set_rate_locked(struct mlx5e_rl_worker *rlw,
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);