From owner-svn-src-all@freebsd.org Sat Dec 5 08:26:18 2015 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2DC63A41409; Sat, 5 Dec 2015 08:26:18 +0000 (UTC) (envelope-from arybchik@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id ED6931144; Sat, 5 Dec 2015 08:26:17 +0000 (UTC) (envelope-from arybchik@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id tB58QHfI083077; Sat, 5 Dec 2015 08:26:17 GMT (envelope-from arybchik@FreeBSD.org) Received: (from arybchik@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id tB58QHJ3083076; Sat, 5 Dec 2015 08:26:17 GMT (envelope-from arybchik@FreeBSD.org) Message-Id: <201512050826.tB58QHJ3083076@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: arybchik set sender to arybchik@FreeBSD.org using -f From: Andrew Rybchenko Date: Sat, 5 Dec 2015 08:26:17 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r291848 - head/sys/dev/sfxge/common X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Dec 2015 08:26:18 -0000 Author: arybchik Date: Sat Dec 5 08:26:16 2015 New Revision: 291848 URL: https://svnweb.freebsd.org/changeset/base/291848 Log: sfxge: cleanup: remove set but not used trailer variable Required to build with -Werror=unused-but-set-variable. Sponsored by: Solarflare Communications, Inc. MFC after: 2 days Modified: head/sys/dev/sfxge/common/hunt_nvram.c Modified: head/sys/dev/sfxge/common/hunt_nvram.c ============================================================================== --- head/sys/dev/sfxge/common/hunt_nvram.c Sat Dec 5 08:24:54 2015 (r291847) +++ head/sys/dev/sfxge/common/hunt_nvram.c Sat Dec 5 08:26:16 2015 (r291848) @@ -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;