[riot-commits] [RIOT-OS/RIOT] 412da2: cpu/lpc11u34: Cast enum to unsigned int for compar...

Joakim Nohlgård joakim.nohlgard at eistec.se
Sun Feb 28 07:00:00 CET 2016


  Branch: refs/heads/master
  Home:   https://github.com/RIOT-OS/RIOT
  Commit: 412da2046d8f8422b4621019e539227f4f647ce0
      https://github.com/RIOT-OS/RIOT/commit/412da2046d8f8422b4621019e539227f4f647ce0
  Author: Joakim Nohlgård <joakim.nohlgard at eistec.se>
  Date:   2016-02-28 (Sun, 28 Feb 2016)

  Changed paths:
    M cpu/lpc11u34/periph/spi.c

  Log Message:
  -----------
  cpu/lpc11u34: Cast enum to unsigned int for comparison


  Commit: 698b2841d13898a8e069e3ae1d0bd39b029ffc1f
      https://github.com/RIOT-OS/RIOT/commit/698b2841d13898a8e069e3ae1d0bd39b029ffc1f
  Author: Joakim Nohlgård <joakim.nohlgard at eistec.se>
  Date:   2016-02-28 (Sun, 28 Feb 2016)

  Changed paths:
    M cpu/nrf51/periph/spi.c

  Log Message:
  -----------
  cpu/nrf51: spi: Fix input check warnings

 - Cast enum to unsigned int for comparison
 - Remove redundant checks
 - Add default case for missing devices


  Commit: 81feb558ef3177f9b7a160f885909cd634b79367
      https://github.com/RIOT-OS/RIOT/commit/81feb558ef3177f9b7a160f885909cd634b79367
  Author: Joakim Nohlgård <joakim.nohlgard at eistec.se>
  Date:   2016-02-28 (Sun, 28 Feb 2016)

  Changed paths:
    M cpu/stm32f0/periph/spi.c

  Log Message:
  -----------
  cpu/stm32f0: spi: Cast enum to unsigned int for comparison


  Commit: 19cee2d75738743e954f733f5046f5e9bd7d3e9d
      https://github.com/RIOT-OS/RIOT/commit/19cee2d75738743e954f733f5046f5e9bd7d3e9d
  Author: Joakim Nohlgård <joakim.nohlgard at eistec.se>
  Date:   2016-02-28 (Sun, 28 Feb 2016)

  Changed paths:
    M cpu/stm32f1/periph/spi.c

  Log Message:
  -----------
  cpu/stm32f1: spi: Cast enum to unsigned int for comparison


  Commit: e4629eb0bb2ae27daf0cca811d719fe13ab9ab7f
      https://github.com/RIOT-OS/RIOT/commit/e4629eb0bb2ae27daf0cca811d719fe13ab9ab7f
  Author: Joakim Nohlgård <joakim.nohlgard at eistec.se>
  Date:   2016-02-28 (Sun, 28 Feb 2016)

  Changed paths:
    M cpu/stm32f3/periph/spi.c

  Log Message:
  -----------
  cpu/stm32f3: spi: Cast enum to unsigned int for comparison


  Commit: c61c1207df208c748d7a508df91fc82bdaad8874
      https://github.com/RIOT-OS/RIOT/commit/c61c1207df208c748d7a508df91fc82bdaad8874
  Author: Joakim Nohlgård <joakim.nohlgard at eistec.se>
  Date:   2016-02-28 (Sun, 28 Feb 2016)

  Changed paths:
    M cpu/stm32f4/periph/spi.c
    M cpu/stm32f4/periph/uart.c

  Log Message:
  -----------
  cpu/stm32f4: Cast enum to unsigned int for comparison


  Commit: 8bf9230d15b0b275a05fdad791d89b56688bea29
      https://github.com/RIOT-OS/RIOT/commit/8bf9230d15b0b275a05fdad791d89b56688bea29
  Author: Joakim Nohlgård <joakim.nohlgard at eistec.se>
  Date:   2016-02-28 (Sun, 28 Feb 2016)

  Changed paths:
    M cpu/stm32l1/periph/spi.c

  Log Message:
  -----------
  cpu/stm32l1: spi: Cast enum to unsigned int for comparison


  Commit: e01e6892ff3c0d1af492da55b538ad36439021f5
      https://github.com/RIOT-OS/RIOT/commit/e01e6892ff3c0d1af492da55b538ad36439021f5
  Author: Joakim Nohlgård <joakim.nohlgard at eistec.se>
  Date:   2016-02-28 (Sun, 28 Feb 2016)

  Changed paths:
    M cpu/stm32l1/periph/i2c.c

  Log Message:
  -----------
  cpu/stm32l1: i2c: Fix array out of bounds before check and Clang input check warnings


  Commit: 0f0a22b652be51d0de28465a0e9506906faa0657
      https://github.com/RIOT-OS/RIOT/commit/0f0a22b652be51d0de28465a0e9506906faa0657
  Author: Joakim Nohlgård <joakim.nohlgard at eistec.se>
  Date:   2016-02-28 (Sun, 28 Feb 2016)

  Changed paths:
    M cpu/sam3/periph/spi.c

  Log Message:
  -----------
  cpu/sam3: spi: Cast enum to unsigned int for comparison


  Commit: af642643464eefd99ff37464bac0be60862f7b43
      https://github.com/RIOT-OS/RIOT/commit/af642643464eefd99ff37464bac0be60862f7b43
  Author: Joakim Nohlgård <joakim.nohlgard at eistec.se>
  Date:   2016-02-28 (Sun, 28 Feb 2016)

  Changed paths:
    M cpu/samd21/periph/uart.c

  Log Message:
  -----------
  cpu/samd21: uart: Remove unnecessary check unsigned < 0


  Commit: 3ff4a334b152b6a9a0b9c41c2fb4727495982be8
      https://github.com/RIOT-OS/RIOT/commit/3ff4a334b152b6a9a0b9c41c2fb4727495982be8
  Author: Joakim Nohlgård <joakim.nohlgard at eistec.se>
  Date:   2016-02-28 (Sun, 28 Feb 2016)

  Changed paths:
    M cpu/samd21/periph/pwm.c
    M cpu/samd21/periph/spi.c

  Log Message:
  -----------
  cpu/samd21: Cast enum to unsigned int for comparison


  Commit: f0584f8ee018a97e73b736524c7be5c2fd3bf9d7
      https://github.com/RIOT-OS/RIOT/commit/f0584f8ee018a97e73b736524c7be5c2fd3bf9d7
  Author: Joakim Nohlgård <joakim.nohlgard at eistec.se>
  Date:   2016-02-28 (Sun, 28 Feb 2016)

  Changed paths:
    M cpu/saml21/periph/spi.c

  Log Message:
  -----------
  cpu/saml21: spi: Cast enum to unsigned int for comparison


  Commit: 5df3357818b183d358b3276c6f4448bbd304343f
      https://github.com/RIOT-OS/RIOT/commit/5df3357818b183d358b3276c6f4448bbd304343f
  Author: Joakim Nohlgård <joakim.nohlgard at eistec.se>
  Date:   2016-02-28 (Sun, 28 Feb 2016)

  Changed paths:
    M cpu/lpc11u34/periph/spi.c
    M cpu/nrf51/periph/spi.c
    M cpu/sam3/periph/spi.c
    M cpu/samd21/periph/pwm.c
    M cpu/samd21/periph/spi.c
    M cpu/samd21/periph/uart.c
    M cpu/saml21/periph/spi.c
    M cpu/stm32f0/periph/spi.c
    M cpu/stm32f1/periph/spi.c
    M cpu/stm32f3/periph/spi.c
    M cpu/stm32f4/periph/spi.c
    M cpu/stm32f4/periph/uart.c
    M cpu/stm32l1/periph/i2c.c
    M cpu/stm32l1/periph/spi.c

  Log Message:
  -----------
  Merge pull request #4916 from gebart/pr/unsigned-enum-compare

cpu: Cast enum to unsigned int before comparing against DEV_NUMOF


Compare: https://github.com/RIOT-OS/RIOT/compare/a384fa9d6d8a...5df3357818b1


More information about the commits mailing list