@@ -1429,7 +1429,6 @@ static void ablkcipher_done(struct device *dev,
14291429
14301430static int common_nonsnoop (struct talitos_edesc * edesc ,
14311431 struct ablkcipher_request * areq ,
1432- u8 * giv ,
14331432 void (* callback ) (struct device * dev ,
14341433 struct talitos_desc * desc ,
14351434 void * context , int error ))
@@ -1449,7 +1448,7 @@ static int common_nonsnoop(struct talitos_edesc *edesc,
14491448
14501449 /* cipher iv */
14511450 ivsize = crypto_ablkcipher_ivsize (cipher );
1452- map_single_talitos_ptr (dev , & desc -> ptr [1 ], ivsize , giv ?: areq -> info , 0 ,
1451+ map_single_talitos_ptr (dev , & desc -> ptr [1 ], ivsize , areq -> info , 0 ,
14531452 DMA_TO_DEVICE );
14541453
14551454 /* cipher key */
@@ -1552,7 +1551,7 @@ static int ablkcipher_encrypt(struct ablkcipher_request *areq)
15521551 /* set encrypt */
15531552 edesc -> desc .hdr = ctx -> desc_hdr_template | DESC_HDR_MODE0_ENCRYPT ;
15541553
1555- return common_nonsnoop (edesc , areq , NULL , ablkcipher_done );
1554+ return common_nonsnoop (edesc , areq , ablkcipher_done );
15561555}
15571556
15581557static int ablkcipher_decrypt (struct ablkcipher_request * areq )
@@ -1568,7 +1567,7 @@ static int ablkcipher_decrypt(struct ablkcipher_request *areq)
15681567
15691568 edesc -> desc .hdr = ctx -> desc_hdr_template | DESC_HDR_DIR_INBOUND ;
15701569
1571- return common_nonsnoop (edesc , areq , NULL , ablkcipher_done );
1570+ return common_nonsnoop (edesc , areq , ablkcipher_done );
15721571}
15731572
15741573static void common_nonsnoop_hash_unmap (struct device * dev ,
0 commit comments