zephyr/drivers/ieee802154
Leandro Pereira 732424f065 drivers, net: Clean up semaphore initialization
Change the common "init with 0" + "give" idiom to "init with 1".  This
won't change the behavior or performance, but should decrease the size
ever so slightly.

This change has been performed mechanically with the following
Coccinelle script:

    @@
    expression SEM;
    expression LIMIT;
    expression TIMEOUT;
    @@

    - k_sem_init(SEM, 0, LIMIT);
    - k_sem_give(SEM);
    + k_sem_init(SEM, 1, LIMIT);

Signed-off-by: Leandro Pereira <leandro.pereira@intel.com>
2017-07-27 15:23:07 -04:00
..
Kconfig net: ieee802154: add native IEEE 802.15.4 driver for KW41Z 2017-04-28 15:01:10 +03:00
Kconfig.cc2520 doc: misspellings in Kconfig files 2017-05-05 19:38:53 -04:00
Kconfig.kw41z doc: misspellings in Kconfig files 2017-05-05 19:38:53 -04:00
Kconfig.mcr20a drivers: mcr20a: allow use the driver with KW2xD devices 2017-07-27 11:21:04 +03:00
Kconfig.nrf5 doc: misspellings in Kconfig files 2017-05-05 19:38:53 -04:00
Makefile net: ieee802154: add native IEEE 802.15.4 driver for KW41Z 2017-04-28 15:01:10 +03:00
ieee802154_cc2520.c net: fix references to stack buffers 2017-07-26 10:31:46 +03:00
ieee802154_cc2520.h linker: move all linker headers to include/linker 2017-06-18 09:24:04 -05:00
ieee802154_cc2520_regs.h net: convert to using newly introduced integer sized types 2017-04-21 09:30:38 -05:00
ieee802154_kw41z.c drivers: ieee802154: kw41z: add support for KW40Z 2017-07-06 14:20:32 -05:00
ieee802154_mcr20a.c drivers, net: Clean up semaphore initialization 2017-07-27 15:23:07 -04:00
ieee802154_mcr20a.h drivers: mcr20a: minor fixes and correction of the copyright header 2017-07-27 11:21:04 +03:00
ieee802154_mcr20a_regs.h drivers: mcr20a: minor fixes and correction of the copyright header 2017-07-27 11:21:04 +03:00
ieee802154_nrf5.c net: fix references to stack buffers 2017-07-26 10:31:46 +03:00
ieee802154_nrf5.h linker: move all linker headers to include/linker 2017-06-18 09:24:04 -05:00
ieee802154_uart_pipe.c net: convert to using newly introduced integer sized types 2017-04-21 09:30:38 -05:00
ieee802154_uart_pipe.h net: convert to using newly introduced integer sized types 2017-04-21 09:30:38 -05:00