diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2005-09-19 22:30:11 +1000 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2005-10-30 11:19:43 +1100 |
commit | 6df5b9f48dd0e77fa796b9b7d3fde7cc5f1237f2 (patch) | |
tree | b13c0941fcbde9a95fece66d02bb0b558cf98041 /net | |
parent | 378f058cc49bcda7fa63d3cd86d2f9a0a5188b1c (diff) | |
download | linux-stable-6df5b9f48dd0e77fa796b9b7d3fde7cc5f1237f2.tar.gz linux-stable-6df5b9f48dd0e77fa796b9b7d3fde7cc5f1237f2.tar.bz2 linux-stable-6df5b9f48dd0e77fa796b9b7d3fde7cc5f1237f2.zip |
[CRYPTO] Simplify one-member scatterlist expressions
This patch rewrites various occurences of &sg[0] where sg is an array
of length one to simply sg.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'net')
-rw-r--r-- | net/sunrpc/auth_gss/gss_krb5_crypto.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/sunrpc/auth_gss/gss_krb5_crypto.c b/net/sunrpc/auth_gss/gss_krb5_crypto.c index e65e1f979275..97c981fa6b8e 100644 --- a/net/sunrpc/auth_gss/gss_krb5_crypto.c +++ b/net/sunrpc/auth_gss/gss_krb5_crypto.c @@ -75,7 +75,7 @@ krb5_encrypt( memcpy(local_iv, iv, crypto_tfm_alg_ivsize(tfm)); memcpy(out, in, length); - sg_set_buf(&sg[0], out, length); + sg_set_buf(sg, out, length); ret = crypto_cipher_encrypt_iv(tfm, sg, sg, length, local_iv); @@ -115,7 +115,7 @@ krb5_decrypt( memcpy(local_iv,iv, crypto_tfm_alg_ivsize(tfm)); memcpy(out, in, length); - sg_set_buf(&sg[0], out, length); + sg_set_buf(sg, out, length); ret = crypto_cipher_decrypt_iv(tfm, sg, sg, length, local_iv); |