mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-02-04 04:31:36 +00:00
bsps/shared/.../spictrl.c: Address -Wsign-compare warnings
This warning occurs when comparing a signed variable to an unsigned one. This is frequently an int or ssize_t variable compared to a uint32_t or size_t. Sometimes the size_t is from a sizeof() use.
This commit is contained in:
@@ -705,7 +705,7 @@ STATIC rtems_status_code spictrl_libi2c_send_addr(rtems_libi2c_bus_t *bushdl,
|
||||
/* Let user set spi select using for example GPIO */
|
||||
return priv->slvSelFunc(priv->regs, addr, 1);
|
||||
} else if ( priv->regs->capability & SPICTRL_CAP_SSEN ) {
|
||||
int slaves;
|
||||
uint32_t slaves;
|
||||
|
||||
/* Maximum number of slaves the core support */
|
||||
slaves = (priv->regs->capability & SPICTRL_CAP_SSSZ) >> SPICTRL_CAP_SSSZ_BIT;
|
||||
|
||||
Reference in New Issue
Block a user