[riot-commits] [RIOT-OS/RIOT] ff2a1d: core: remove needless test in msg.c

René Kijewski kijewski at mi.fu-berlin.de
Fri Nov 14 12:16:37 CET 2014


  Branch: refs/heads/master
  Home:   https://github.com/RIOT-OS/RIOT
  Commit: ff2a1dc61b02c520e97c8bb3846ae550244ac8f4
      https://github.com/RIOT-OS/RIOT/commit/ff2a1dc61b02c520e97c8bb3846ae550244ac8f4
  Author: René Kijewski <rene.kijewski at fu-berlin.de>
  Date:   2014-11-14 (Fri, 14 Nov 2014)

  Changed paths:
    M core/msg.c

  Log Message:
  -----------
  core: remove needless test in msg.c

`thread.c` initializes a thread with an empty message queue. `cib_put()`
will `return -1` for an empty CIB, so there is no need to test if
`thread->msg_array != NULL`.


  Commit: acf91883b9da7a1be6a15d51197134520ac952ac
      https://github.com/RIOT-OS/RIOT/commit/acf91883b9da7a1be6a15d51197134520ac952ac
  Author: René Kijewski <kijewski at mi.fu-berlin.de>
  Date:   2014-11-14 (Fri, 14 Nov 2014)

  Changed paths:
    M core/msg.c

  Log Message:
  -----------
  Merge pull request #2013 from Kijewski/msg-needless-test

core: remove needless test in msg.c


Compare: https://github.com/RIOT-OS/RIOT/compare/2b0d49c8b18f...acf91883b9da


More information about the commits mailing list