From a8c75ac4f48ecea82047b7016530a53f007939b5 Mon Sep 17 00:00:00 2001 From: James Turton Date: Fri, 16 Sep 2022 16:35:37 +0200 Subject: [PATCH] rp: Use memset --- src/target/rp.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/target/rp.c b/src/target/rp.c index ac01943..74b22f4 100644 --- a/src/target/rp.c +++ b/src/target/rp.c @@ -731,8 +731,7 @@ static void rp_flash_put_get(target *const t, const uint8_t *tx, uint8_t *rx, co static void rp_flash_exit_xip(target *const t) { uint8_t buf[2]; - buf[0] = 0xff; - buf[1] = 0xff; + memset(buf, 0xffU, sizeof(buf)); rp_flash_init_spi(t);