Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/iscsi Remove redundant duplicate assignment.



details:   https://anonhg.NetBSD.org/src/rev/cb9060c2a6d6
branches:  trunk
changeset: 823298:cb9060c2a6d6
user:      maya <maya%NetBSD.org@localhost>
date:      Tue Apr 18 17:28:18 2017 +0000

description:
Remove redundant duplicate assignment.

from clang static analyzer

diffstat:

 sys/dev/iscsi/base64.c |  3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diffs (17 lines):

diff -r 85c08946770e -r cb9060c2a6d6 sys/dev/iscsi/base64.c
--- a/sys/dev/iscsi/base64.c    Tue Apr 18 17:05:05 2017 +0000
+++ b/sys/dev/iscsi/base64.c    Tue Apr 18 17:28:18 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: base64.c,v 1.1 2011/10/23 21:15:02 agc Exp $   */
+/*     $NetBSD: base64.c,v 1.2 2017/04/18 17:28:18 maya Exp $  */
 
 /*-
  * Copyright (c) 2005,2006,2011 The NetBSD Foundation, Inc.
@@ -97,7 +97,6 @@
        *p++ = '0';
        *p++ = 'b';
 
-       i = 0;
        for (i = 0; i < size;) {
                c = q[i++];
                c *= 256;



Home | Main Index | Thread Index | Old Index