File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff 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
723723static uint32_t ot_spi_device_get_status (const OtSPIDeviceState * s )
You can’t perform that action at this time.
0 commit comments