summaryrefslogtreecommitdiffstats
path: root/drivers/staging/sep
diff options
context:
space:
mode:
authorDevendra Naga <devendra.aaru@gmail.com>2013-01-22 03:56:08 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-01-22 08:58:44 -0800
commitc095454e4b6acc8a5e7908647ec60d6088be90c8 (patch)
tree5fbc3286ef1df5126458274d07286d8c68e25ebf /drivers/staging/sep
parent7b63c5772fd6eea71b1332570812297e45403126 (diff)
downloadtalos-obmc-linux-c095454e4b6acc8a5e7908647ec60d6088be90c8.tar.gz
talos-obmc-linux-c095454e4b6acc8a5e7908647ec60d6088be90c8.zip
staging: sep: remove assignment to i and j in sep_crypto_setup
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>
Diffstat (limited to 'drivers/staging/sep')
-rw-r--r--drivers/staging/sep/sep_crypto.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/staging/sep/sep_crypto.c b/drivers/staging/sep/sep_crypto.c
index 34710ce56004..861588f57d2b 100644
--- a/drivers/staging/sep/sep_crypto.c
+++ b/drivers/staging/sep/sep_crypto.c
@@ -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)
OpenPOWER on IntegriCloud