@@ -719,8 +719,8 @@ static int ahash_update_ctx(struct ahash_request *req)
719719 struct caam_hash_ctx * ctx = crypto_ahash_ctx (ahash );
720720 struct caam_hash_state * state = ahash_request_ctx (req );
721721 struct device * jrdev = ctx -> jrdev ;
722- gfp_t flags = (req -> base .flags & ( CRYPTO_TFM_REQ_MAY_BACKLOG |
723- CRYPTO_TFM_REQ_MAY_SLEEP )) ? GFP_KERNEL : GFP_ATOMIC ;
722+ gfp_t flags = (req -> base .flags & CRYPTO_TFM_REQ_MAY_SLEEP ) ?
723+ GFP_KERNEL : GFP_ATOMIC ;
724724 u8 * buf = current_buf (state );
725725 int * buflen = current_buflen (state );
726726 u8 * next_buf = alt_buf (state );
@@ -849,8 +849,8 @@ static int ahash_final_ctx(struct ahash_request *req)
849849 struct caam_hash_ctx * ctx = crypto_ahash_ctx (ahash );
850850 struct caam_hash_state * state = ahash_request_ctx (req );
851851 struct device * jrdev = ctx -> jrdev ;
852- gfp_t flags = (req -> base .flags & ( CRYPTO_TFM_REQ_MAY_BACKLOG |
853- CRYPTO_TFM_REQ_MAY_SLEEP )) ? GFP_KERNEL : GFP_ATOMIC ;
852+ gfp_t flags = (req -> base .flags & CRYPTO_TFM_REQ_MAY_SLEEP ) ?
853+ GFP_KERNEL : GFP_ATOMIC ;
854854 int buflen = * current_buflen (state );
855855 u32 * desc ;
856856 int sec4_sg_bytes , sec4_sg_src_index ;
@@ -926,8 +926,8 @@ static int ahash_finup_ctx(struct ahash_request *req)
926926 struct caam_hash_ctx * ctx = crypto_ahash_ctx (ahash );
927927 struct caam_hash_state * state = ahash_request_ctx (req );
928928 struct device * jrdev = ctx -> jrdev ;
929- gfp_t flags = (req -> base .flags & ( CRYPTO_TFM_REQ_MAY_BACKLOG |
930- CRYPTO_TFM_REQ_MAY_SLEEP )) ? GFP_KERNEL : GFP_ATOMIC ;
929+ gfp_t flags = (req -> base .flags & CRYPTO_TFM_REQ_MAY_SLEEP ) ?
930+ GFP_KERNEL : GFP_ATOMIC ;
931931 int buflen = * current_buflen (state );
932932 u32 * desc ;
933933 int sec4_sg_src_index ;
@@ -1013,8 +1013,8 @@ static int ahash_digest(struct ahash_request *req)
10131013 struct caam_hash_ctx * ctx = crypto_ahash_ctx (ahash );
10141014 struct caam_hash_state * state = ahash_request_ctx (req );
10151015 struct device * jrdev = ctx -> jrdev ;
1016- gfp_t flags = (req -> base .flags & ( CRYPTO_TFM_REQ_MAY_BACKLOG |
1017- CRYPTO_TFM_REQ_MAY_SLEEP )) ? GFP_KERNEL : GFP_ATOMIC ;
1016+ gfp_t flags = (req -> base .flags & CRYPTO_TFM_REQ_MAY_SLEEP ) ?
1017+ GFP_KERNEL : GFP_ATOMIC ;
10181018 u32 * desc ;
10191019 int digestsize = crypto_ahash_digestsize (ahash );
10201020 int src_nents , mapped_nents ;
@@ -1093,8 +1093,8 @@ static int ahash_final_no_ctx(struct ahash_request *req)
10931093 struct caam_hash_ctx * ctx = crypto_ahash_ctx (ahash );
10941094 struct caam_hash_state * state = ahash_request_ctx (req );
10951095 struct device * jrdev = ctx -> jrdev ;
1096- gfp_t flags = (req -> base .flags & ( CRYPTO_TFM_REQ_MAY_BACKLOG |
1097- CRYPTO_TFM_REQ_MAY_SLEEP )) ? GFP_KERNEL : GFP_ATOMIC ;
1096+ gfp_t flags = (req -> base .flags & CRYPTO_TFM_REQ_MAY_SLEEP ) ?
1097+ GFP_KERNEL : GFP_ATOMIC ;
10981098 u8 * buf = current_buf (state );
10991099 int buflen = * current_buflen (state );
11001100 u32 * desc ;
@@ -1154,8 +1154,8 @@ static int ahash_update_no_ctx(struct ahash_request *req)
11541154 struct caam_hash_ctx * ctx = crypto_ahash_ctx (ahash );
11551155 struct caam_hash_state * state = ahash_request_ctx (req );
11561156 struct device * jrdev = ctx -> jrdev ;
1157- gfp_t flags = (req -> base .flags & ( CRYPTO_TFM_REQ_MAY_BACKLOG |
1158- CRYPTO_TFM_REQ_MAY_SLEEP )) ? GFP_KERNEL : GFP_ATOMIC ;
1157+ gfp_t flags = (req -> base .flags & CRYPTO_TFM_REQ_MAY_SLEEP ) ?
1158+ GFP_KERNEL : GFP_ATOMIC ;
11591159 u8 * buf = current_buf (state );
11601160 int * buflen = current_buflen (state );
11611161 u8 * next_buf = alt_buf (state );
@@ -1280,8 +1280,8 @@ static int ahash_finup_no_ctx(struct ahash_request *req)
12801280 struct caam_hash_ctx * ctx = crypto_ahash_ctx (ahash );
12811281 struct caam_hash_state * state = ahash_request_ctx (req );
12821282 struct device * jrdev = ctx -> jrdev ;
1283- gfp_t flags = (req -> base .flags & ( CRYPTO_TFM_REQ_MAY_BACKLOG |
1284- CRYPTO_TFM_REQ_MAY_SLEEP )) ? GFP_KERNEL : GFP_ATOMIC ;
1283+ gfp_t flags = (req -> base .flags & CRYPTO_TFM_REQ_MAY_SLEEP ) ?
1284+ GFP_KERNEL : GFP_ATOMIC ;
12851285 int buflen = * current_buflen (state );
12861286 u32 * desc ;
12871287 int sec4_sg_bytes , sec4_sg_src_index , src_nents , mapped_nents ;
@@ -1370,8 +1370,8 @@ static int ahash_update_first(struct ahash_request *req)
13701370 struct caam_hash_ctx * ctx = crypto_ahash_ctx (ahash );
13711371 struct caam_hash_state * state = ahash_request_ctx (req );
13721372 struct device * jrdev = ctx -> jrdev ;
1373- gfp_t flags = (req -> base .flags & ( CRYPTO_TFM_REQ_MAY_BACKLOG |
1374- CRYPTO_TFM_REQ_MAY_SLEEP )) ? GFP_KERNEL : GFP_ATOMIC ;
1373+ gfp_t flags = (req -> base .flags & CRYPTO_TFM_REQ_MAY_SLEEP ) ?
1374+ GFP_KERNEL : GFP_ATOMIC ;
13751375 u8 * next_buf = alt_buf (state );
13761376 int * next_buflen = alt_buflen (state );
13771377 int to_hash ;
0 commit comments