mirror of
https://review.coreboot.org/flashrom.git
synced 2025-07-02 06:23:18 +02:00
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> Reviewed-on: https://review.coreboot.org/c/flashrom/+/55267 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Nico Huber <nico.h@gmx.de>
This commit is contained in:
@ -358,9 +358,8 @@ int jlink_spi_init(void)
|
||||
goto init_err;
|
||||
}
|
||||
|
||||
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) {
|
||||
|
Reference in New Issue
Block a user