zephyr/drivers/ethernet
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
..
eth_dw_priv.h
eth_dw.c
eth_enc28j60_priv.h
eth_enc28j60.c drivers, net: Clean up semaphore initialization 2017-07-27 15:23:07 -04:00
eth_mcux.c drivers: ethernet: mcux: fix build warning 2017-07-26 09:49:45 -05:00
eth_sam_gmac_priv.h
eth_sam_gmac.c
eth_stm32_hal_priv.h
eth_stm32_hal.c driver: eth_stm32_hal: make phy address configurable 2017-07-12 12:53:51 +03:00
Kconfig
Kconfig.dw
Kconfig.enc28j60
Kconfig.mcux
Kconfig.sam_gmac
Kconfig.stm32_hal driver: eth_stm32_hal: make phy address configurable 2017-07-12 12:53:51 +03:00
Makefile
phy_sam_gmac.c
phy_sam_gmac.h