commit | 7e1345602641114c8eeb5cfef992bf1da8d7fa6a | [log] [tgz] |
---|---|---|
author | Angel Pons <th3fanbus@gmail.com> | Mon Jun 07 13:29:13 2021 +0200 |
committer | Nico Huber <nico.h@gmx.de> | Thu Jan 05 16:15:22 2023 +0000 |
tree | ce19124575cfd893449c754800c757d096dd3130 | |
parent | 690a944066619ff9d450d71cdcfe2e0bcb1120f3 [diff] [blame] |
treewide: Drop unnecessary uses of memset/memcpy Simply provide an initialiser or use a direct assignment instead. Change-Id: I07385375cd8eec8a95874001b402b2c17ec09e09 Signed-off-by: Angel Pons <th3fanbus@gmail.com> Original-Reviewed-on: https://review.coreboot.org/c/flashrom/+/55267 Original-Reviewed-by: Nico Huber <nico.h@gmx.de> Reviewed-on: https://review.coreboot.org/c/flashrom-stable/+/71372 Reviewed-by: Nico Huber <nico.h@gmx.de> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
diff --git a/jlink_spi.c b/jlink_spi.c index f2702fa..369c645 100644 --- a/jlink_spi.c +++ b/jlink_spi.c
@@ -349,9 +349,8 @@ return 1; } - uint8_t caps[JAYLINK_DEV_EXT_CAPS_SIZE]; + uint8_t caps[JAYLINK_DEV_EXT_CAPS_SIZE] = { 0 }; - memset(caps, 0, sizeof(caps)); ret = jaylink_get_caps(jaylink_devh, caps); if (ret != JAYLINK_OK) {