rp: Use memset

This commit is contained in:
James Turton 2022-09-16 16:35:37 +02:00 committed by Rachel Mant
parent 97d766eee8
commit a8c75ac4f4
1 changed files with 1 additions and 2 deletions

View File

@ -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) static void rp_flash_exit_xip(target *const t)
{ {
uint8_t buf[2]; uint8_t buf[2];
buf[0] = 0xff; memset(buf, 0xffU, sizeof(buf));
buf[1] = 0xff;
rp_flash_init_spi(t); rp_flash_init_spi(t);