]> git.sesse.net Git - hamming/commitdiff
Remove an unused variable.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Thu, 2 Mar 2006 14:06:35 +0000 (14:06 +0000)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Thu, 2 Mar 2006 14:06:35 +0000 (14:06 +0000)
hamming32.c

index 7c5d2c9dbefdf98d234a389c8abe8d8d1abd9546..9b8576b2a04631be46e8ca29600209f3ccbedd89 100644 (file)
@@ -52,7 +52,6 @@ int has_error(unsigned code)
 
 int has_double_error(unsigned code)
 {
-       unsigned i;
        unsigned data = code >> PARITY_BITS;
        unsigned parity = code & ((1 << PARITY_BITS) - 1);
        unsigned gen_parity = generate_parity(data);