Skip to content

Commit b2fca61

Browse files
committed
[ot] hw/opentitan: spi_device: s/0/0u
Signed-off-by: James Wainwright <[email protected]>
1 parent 856b2e5 commit b2fca61

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

hw/opentitan/ot_spi_device.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -706,18 +706,18 @@ static void ot_spi_device_clear_modes(OtSPIDeviceState *s)
706706

707707
timer_del(f->irq_timer);
708708
FLASH_CHANGE_STATE(s, IDLE);
709-
f->address = 0;
710-
f->last_read_addr = 0;
709+
f->address = 0u;
710+
f->last_read_addr = 0u;
711711
f->cmd_info = UINT32_MAX;
712-
f->pos = 0;
713-
f->len = 0;
712+
f->pos = 0u;
713+
f->len = 0u;
714714
f->type = SPI_FLASH_CMD_NONE;
715715
g_assert(s->sram);
716716
f->payload = &((uint8_t *)s->sram)[SPI_SRAM_PAYLOAD_OFFSET];
717717
f->payload += SPI_SRAM_INGRESS_OFFSET;
718-
memset(f->buffer, 0, SPI_FLASH_BUFFER_SIZE);
718+
memset(f->buffer, 0u, SPI_FLASH_BUFFER_SIZE);
719719

720-
memset(s->sram, 0, SRAM_SIZE);
720+
memset(s->sram, 0u, SRAM_SIZE);
721721
}
722722

723723
static uint32_t ot_spi_device_get_status(const OtSPIDeviceState *s)

0 commit comments

Comments
 (0)