Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

staging: ccree: drop open coded init for memset



Replace open coded struct zeroing with a memset call.

Signed-off-by: default avatarGilad Ben-Yossef <gilad@benyossef.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent ee67acfe
Loading
Loading
Loading
Loading
+1 −8
Original line number Diff line number Diff line
@@ -172,14 +172,7 @@ typedef enum HwDesKeySize {

#define GET_HW_Q_DESC_WORD_IDX(descWordIdx) (CC_REG_OFFSET(CRY_KERNEL, DSCRPTR_QUEUE_WORD ## descWordIdx) )

#define HW_DESC_INIT(pDesc)  do { \
	(pDesc)->word[0] = 0;     \
	(pDesc)->word[1] = 0;     \
	(pDesc)->word[2] = 0;     \
	(pDesc)->word[3] = 0;     \
	(pDesc)->word[4] = 0;     \
	(pDesc)->word[5] = 0;     \
} while (0)
#define HW_DESC_INIT(pDesc)  memset(pDesc, 0, sizeof(HwDesc_s))

/*!
 * This macro indicates the end of current HW descriptors flow and release the HW engines.