Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Jan 2016 15:11:20 +0000 (UTC)
From:      Andrew Rybchenko <arybchik@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r293950 - stable/10/sys/dev/sfxge/common
Message-ID:  <201601141511.u0EFBKxH036935@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: arybchik
Date: Thu Jan 14 15:11:19 2016
New Revision: 293950
URL: https://svnweb.freebsd.org/changeset/base/293950

Log:
  MFC r291848
  
  sfxge: cleanup: remove set but not used trailer variable
  
  Required to build with -Werror=unused-but-set-variable.
  
  Sponsored by:   Solarflare Communications, Inc.

Modified:
  stable/10/sys/dev/sfxge/common/hunt_nvram.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/dev/sfxge/common/hunt_nvram.c
==============================================================================
--- stable/10/sys/dev/sfxge/common/hunt_nvram.c	Thu Jan 14 15:10:35 2016	(r293949)
+++ stable/10/sys/dev/sfxge/common/hunt_nvram.c	Thu Jan 14 15:11:19 2016	(r293950)
@@ -853,7 +853,6 @@ hunt_nvram_buf_segment_size(
 	efx_rc_t rc;
 	tlv_cursor_t cursor;
 	struct tlv_partition_header *header;
-	struct tlv_partition_trailer *trailer;
 	uint32_t cksum;
 	int pos;
 	uint32_t *end_tag_position;
@@ -883,7 +882,6 @@ hunt_nvram_buf_segment_size(
 		rc = EINVAL;
 		goto fail4;
 	}
-	trailer = (struct tlv_partition_trailer *)tlv_item(&cursor);
 
 	if ((rc = tlv_advance(&cursor)) != 0) {
 		rc = EINVAL;



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