mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-05 21:44:23 -04:00
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:
committed by
Greg Kroah-Hartman
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 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.
|
||||
|
||||
Reference in New Issue
Block a user