diff mbox series

[v2,02/20] staging: ccree: replace bit shift with BIT macro

Message ID 1496314993-30229-3-git-send-email-gilad@benyossef.com
State Accepted
Commit 6562e7db139f48d41d15fd2c3afb06017d6d8f97
Headers show
Series [v2,01/20] staging: ccree: remove spurious blank lines | expand

Commit Message

Gilad Ben-Yossef June 1, 2017, 11:02 a.m. UTC
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(-)

-- 
2.1.4

Comments

Greg Kroah-Hartman June 3, 2017, 8:46 a.m. UTC | #1
On Thu, Jun 01, 2017 at 02:02:52PM +0300, Gilad Ben-Yossef wrote:
> 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(-)


This patch didn't apply at all, are you sure you are working against the
correct tree?  I've tried to apply some of this series, but most do not
work at all...

Please rebase against my staging-next branch and resend the ones that do
work.

thanks,

greg k-h
diff mbox series

Patch

diff --git a/drivers/staging/ccree/cc_crypto_ctx.h b/drivers/staging/ccree/cc_crypto_ctx.h
index 9bfadb21..18c15fc 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