staging: sep: remove assignment to i and j in sep_crypto_setup
authorDevendra Naga <devendra.aaru@gmail.com>
Tue, 22 Jan 2013 08:56:08 +0000 (03:56 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 22 Jan 2013 16:58:44 +0000 (08:58 -0800)
the i and j are used in for loop and they assigned to zeros in the
for loop, so no need to assign them to zeros again.

Signed-off-by: Devendra Naga <devendra.aaru@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/sep/sep_crypto.c

index 34710ce560046f3034ec039d980ea33c0f6beb02..861588f57d2bb38ecd1568bf87b1be718412603c 100644 (file)
@@ -3908,13 +3908,9 @@ int sep_crypto_setup(void)
                return -ENOMEM;
        }
 
-       i = 0;
-       j = 0;
-
        spin_lock_init(&queue_lock);
 
        err = 0;
-
        for (i = 0; i < ARRAY_SIZE(hash_algs); i++) {
                err = crypto_register_ahash(&hash_algs[i]);
                if (err)