Commit 200f8064 authored by Gilad Ben-Yossef's avatar Gilad Ben-Yossef Committed by Greg Kroah-Hartman
Browse files

staging: ccree: fix cipher func def coding style



Fix cipher functions definition indentation according to coding
style guide lines for better code readability

Signed-off-by: default avatarGilad Ben-Yossef <gilad@benyossef.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent aebae881
Loading
Loading
Loading
Loading
+15 −23
Original line number Diff line number Diff line
@@ -435,12 +435,9 @@ static int cc_cipher_setkey(struct crypto_ablkcipher *atfm, const u8 *key,
	return 0;
}

static void
cc_setup_cipher_desc(
	struct crypto_tfm *tfm,
static void cc_setup_cipher_desc(struct crypto_tfm *tfm,
				 struct blkcipher_req_ctx *req_ctx,
	unsigned int ivsize,
	unsigned int nbytes,
				 unsigned int ivsize, unsigned int nbytes,
				 struct cc_hw_desc desc[],
				 unsigned int *seq_size)
{
@@ -565,11 +562,9 @@ cc_setup_cipher_desc(
}

#if SSI_CC_HAS_MULTI2
static void cc_setup_multi2_desc(
	struct crypto_tfm *tfm,
static void cc_setup_multi2_desc(struct crypto_tfm *tfm,
				 struct blkcipher_req_ctx *req_ctx,
	unsigned int ivsize,
	struct cc_hw_desc desc[],
				 unsigned int ivsize, struct cc_hw_desc desc[],
				 unsigned int *seq_size)
{
	struct cc_cipher_ctx *ctx_p = crypto_tfm_ctx(tfm);
@@ -609,14 +604,11 @@ static void cc_setup_multi2_desc(
}
#endif /*SSI_CC_HAS_MULTI2*/

static void
cc_setup_cipher_data(
	struct crypto_tfm *tfm,
static void cc_setup_cipher_data(struct crypto_tfm *tfm,
				 struct blkcipher_req_ctx *req_ctx,
	struct scatterlist *dst, struct scatterlist *src,
	unsigned int nbytes,
	void *areq,
	struct cc_hw_desc desc[],
				 struct scatterlist *dst,
				 struct scatterlist *src, unsigned int nbytes,
				 void *areq, struct cc_hw_desc desc[],
				 unsigned int *seq_size)
{
	struct cc_cipher_ctx *ctx_p = crypto_tfm_ctx(tfm);