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:
parent
ee67acfeed
commit
df8a6b053c
|
@ -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 GET_HW_Q_DESC_WORD_IDX(descWordIdx) (CC_REG_OFFSET(CRY_KERNEL, DSCRPTR_QUEUE_WORD ## descWordIdx) )
|
||||||
|
|
||||||
#define HW_DESC_INIT(pDesc) do { \
|
#define HW_DESC_INIT(pDesc) memset(pDesc, 0, sizeof(HwDesc_s))
|
||||||
(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)
|
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* This macro indicates the end of current HW descriptors flow and release the HW engines.
|
* This macro indicates the end of current HW descriptors flow and release the HW engines.
|
||||||
|
|
Loading…
Reference in New Issue