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

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
......@@ -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.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment