File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -398,7 +398,7 @@ int crypto_qti_keyslot_program(void *priv_data,
398398 unsigned int slot ,
399399 u8 data_unit_mask , int capid )
400400{
401- int err = 0 ;
401+ int err1 = 0 , err2 = 0 ;
402402 struct crypto_vops_qti_entry * ice_entry ;
403403
404404 ice_entry = (struct crypto_vops_qti_entry * ) priv_data ;
@@ -407,19 +407,19 @@ int crypto_qti_keyslot_program(void *priv_data,
407407 return - EINVAL ;
408408 }
409409
410- err = crypto_qti_program_key (ice_entry , key , slot ,
410+ err1 = crypto_qti_program_key (ice_entry , key , slot ,
411411 data_unit_mask , capid );
412- if (err ) {
413- pr_err ("%s: program key failed with error %d\n" , __func__ , err );
414- err = crypto_qti_invalidate_key (ice_entry , slot );
415- if (err ) {
412+ if (err1 ) {
413+ pr_err ("%s: program key failed with error %d\n" ,
414+ __func__ , err1 );
415+ err2 = crypto_qti_invalidate_key (ice_entry , slot );
416+ if (err2 ) {
416417 pr_err ("%s: invalidate key failed with error %d\n" ,
417- __func__ , err );
418- return err ;
418+ __func__ , err2 );
419419 }
420420 }
421421
422- return err ;
422+ return err1 ;
423423}
424424
425425int crypto_qti_keyslot_evict (void * priv_data , unsigned int slot )
You can’t perform that action at this time.
0 commit comments