zephyr/drivers/crypto
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
..
crypto_ataes132a_priv.h drivers: convert to using newly introduced integer sized types 2017-04-21 10:06:48 -05:00
crypto_ataes132a.c drivers, net: Clean up semaphore initialization 2017-07-27 15:23:07 -04:00
crypto_tc_shim_priv.h drivers/crypto: Prefix source code relevantly 2017-04-27 13:06:31 +00:00
crypto_tc_shim.c drivers/crypto: Fix a memory leak in tc shim driver 2017-04-27 13:06:34 +00:00
Kconfig drivers/crypto: Make tc shim number of sessions Kconfig based 2017-04-27 13:06:32 +00:00
Kconfig.ataes132a doc: misspellings in Kconfig files 2017-05-05 19:38:53 -04:00
Makefile drivers/crypto: Prefix source code relevantly 2017-04-27 13:06:31 +00:00