crypto: caam/jr - Removed redundant vars from job ring private data
authorVakul Garg <vakul.garg@nxp.com>
Fri, 22 Mar 2019 02:00:35 +0000 (02:00 +0000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 28 Mar 2019 05:55:34 +0000 (13:55 +0800)
commit1b30b989cbea4052302bc304cc6179ee2f33ea9b
treeb47b3e7833527f6df70dd910df0e53f4a7ca118c
parenta118dfa0dbfcc8e95833b4bb7d83271ba85cf397
crypto: caam/jr - Removed redundant vars from job ring private data

For each job ring, the variable 'ringsize' is initialised but never
used. Similarly variables 'inp_ring_write_index' and 'head' always track
the same value and instead of 'inp_ring_write_index', caam_jr_enqueue()
can use 'head' itself. Both these variables have been removed.

Signed-off-by: Vakul Garg <vakul.garg@nxp.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/caam/intern.h
drivers/crypto/caam/jr.c