Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Dec 2011 22:05:24 +0000 (UTC)
From:      Pawel Jakub Dawidek <pjd@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r228544 - head/sbin/hastd
Message-ID:  <201112152205.pBFM5ONS072670@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pjd
Date: Thu Dec 15 22:05:23 2011
New Revision: 228544
URL: http://svn.freebsd.org/changeset/base/228544

Log:
  Remove redundant assignment.
  
  Found by:	Clang Static Analyzer
  MFC after:	1 week

Modified:
  head/sbin/hastd/secondary.c

Modified: head/sbin/hastd/secondary.c
==============================================================================
--- head/sbin/hastd/secondary.c	Thu Dec 15 22:03:17 2011	(r228543)
+++ head/sbin/hastd/secondary.c	Thu Dec 15 22:05:23 2011	(r228544)
@@ -199,8 +199,6 @@ init_remote(struct hast_resource *res, s
 		pjdlog_errno(LOG_WARNING, "Unable to set connection direction");
 #endif
 
-	map = NULL;
-	mapsize = 0;
 	nvout = nv_alloc();
 	nv_add_int64(nvout, (int64_t)res->hr_datasize, "datasize");
 	nv_add_int32(nvout, (int32_t)res->hr_extentsize, "extentsize");



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