staging: ccree: drop open coded init for memset

Replace open coded struct zeroing with a memset call.

Signed-off-by: Gilad Ben-Yossef <gilad@benyossef.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Gilad Ben-Yossef 2017-05-07 16:35:57 +03:00 committed by Greg Kroah-Hartman
parent ee67acfeed
commit df8a6b053c
1 changed files with 1 additions and 8 deletions

View File

@ -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.