Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 9 Nov 2017 12:37:19 +0000 (UTC)
From:      Marcin Wojtas <mw@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r325586 - head/sys/dev/ena
Message-ID:  <201711091237.vA9CbJPj067686@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mw
Date: Thu Nov  9 12:37:19 2017
New Revision: 325586
URL: https://svnweb.freebsd.org/changeset/base/325586

Log:
  Fix compilation warnings when building ENA driver with gcc compiler
  
  The gcc compiler is more sensitive when variable is having an value
  assigned, but it is not used anywhere further.
  
  Submitted by: Michal Krawczyk <mk@semihalf.com>
  Reviewed by: rlibby
  Obtained from: Semihalf
  Sponsored by: Amazon, Inc.
  Differential Revision: https://reviews.freebsd.org/D12866

Modified:
  head/sys/dev/ena/ena.c

Modified: head/sys/dev/ena/ena.c
==============================================================================
--- head/sys/dev/ena/ena.c	Thu Nov  9 12:32:10 2017	(r325585)
+++ head/sys/dev/ena/ena.c	Thu Nov  9 12:37:19 2017	(r325586)
@@ -2725,7 +2725,7 @@ ena_xmit_mbuf(struct ena_ring *tx_ring, struct mbuf **
 	ena_qid = ENA_IO_TXQ_IDX(tx_ring->que->id);
 	adapter = tx_ring->que->adapter;
 	ena_dev = adapter->ena_dev;
-	io_sq = &adapter->ena_dev->io_sq_queues[ena_qid];
+	io_sq = &ena_dev->io_sq_queues[ena_qid];
 
 	rc = ena_check_and_collapse_mbuf(tx_ring, mbuf);
 	if (unlikely(rc != 0)) {



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