Skip to content

Commit

Permalink
staging: sep: remove assignment to i and j in sep_crypto_setup
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Devendra Naga authored and Greg Kroah-Hartman committed Jan 22, 2013
1 parent 7b63c57 commit c095454
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions drivers/staging/sep/sep_crypto.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c095454

Please sign in to comment.