lkml.org 
[lkml]   [2017]   [Jun]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH v3 01/18] staging: ccree: replace bit shift with BIT macro
    Date
    CC_CTX_SIZE was being defined using a hand rolled bit shift operation.
    Replace with use of BIT macro.

    Signed-off-by: Gilad Ben-Yossef <gilad@benyossef.com>
    ---
    drivers/staging/ccree/cc_crypto_ctx.h | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    diff --git a/drivers/staging/ccree/cc_crypto_ctx.h b/drivers/staging/ccree/cc_crypto_ctx.h
    index 1fc68de..20f3f9f 100644
    --- a/drivers/staging/ccree/cc_crypto_ctx.h
    +++ b/drivers/staging/ccree/cc_crypto_ctx.h
    @@ -27,7 +27,7 @@
    #define CC_CTX_SIZE_LOG2 7
    #endif
    #endif
    -#define CC_CTX_SIZE (1 << CC_CTX_SIZE_LOG2)
    +#define CC_CTX_SIZE BIT(CC_CTX_SIZE_LOG2)
    #define CC_DRV_CTX_SIZE_WORDS (CC_CTX_SIZE >> 2)

    #define CC_DRV_DES_IV_SIZE 8
    --
    2.1.4
    \
     
     \ /
      Last update: 2017-06-05 00:17    [W:3.339 / U:0.008 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site