Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Jan 2010 16:58:58 +0000 (UTC)
From:      Edward Tomasz Napierala <trasz@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r202976 - head/sys/geom/eli
Message-ID:  <201001251658.o0PGwwfX022972@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: trasz
Date: Mon Jan 25 16:58:58 2010
New Revision: 202976
URL: http://svn.freebsd.org/changeset/base/202976

Log:
  Remove pointless assignment.
  
  Found with:	clang

Modified:
  head/sys/geom/eli/g_eli_key.c

Modified: head/sys/geom/eli/g_eli_key.c
==============================================================================
--- head/sys/geom/eli/g_eli_key.c	Mon Jan 25 16:55:31 2010	(r202975)
+++ head/sys/geom/eli/g_eli_key.c	Mon Jan 25 16:58:58 2010	(r202976)
@@ -120,7 +120,6 @@ g_eli_mkey_decrypt(const struct g_eli_me
 	g_eli_crypto_hmac(key, G_ELI_USERKEYLEN, "\x01", 1, enckey, 0);
 
 	mmkey = md->md_mkeys;
-	nkey = 0;
 	for (nkey = 0; nkey < G_ELI_MAXMKEYS; nkey++, mmkey += G_ELI_MKEYLEN) {
 		bit = (1 << nkey);
 		if (!(md->md_keys & bit))



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