Skip to content

Commit 5e2a3ba

Browse files
committed
Merge tag 'LA.UM.9.2.1.r1-08300-sdm660.0'
"LA.UM.9.2.1.r1-08300-sdm660.0"
2 parents cc313e9 + 73cfc00 commit 5e2a3ba

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

drivers/soc/qcom/crypto-qti-common.c

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff 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

425425
int crypto_qti_keyslot_evict(void *priv_data, unsigned int slot)

0 commit comments

Comments
 (0)