[riot-notifications] [RIOT] drivers/spi: updated SPI driver interface (#3216)

Joakim Gebart notifications at github.com
Thu Jun 18 20:33:24 CEST 2015


> @@ -1263,13 +1237,13 @@ int spi_transfer_regs(spi_t dev, uint8_t reg, char *out, char *in, unsigned int
>      /* Default: send idle data */
>      byte_out = (uint8_t)SPI_IDLE_DATA;
>  
> -    for (i = 0; i < (int)length; i++) {
> +    for (i = 0; i < (int)len; i++) {

you can remove the `(int)` cast since both `len` and `i` are `size_t`

---
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/3216/files#r32762782
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20150618/e5f91103/attachment.html>


More information about the notifications mailing list