Commit 9196d967 authored by Tadeusz Struk's avatar Tadeusz Struk Committed by Herbert Xu

crypto: qat - remove unneeded variable

Remove unneeded variable val_indx.
Issue found by a static analyzer.
Reported-by: default avatarGiovanni Cabiddu <giovanni.cabiddu@intel.com>
Signed-off-by: default avatarTadeusz Struk <tadeusz.struk@intel.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent def14bfa
...@@ -1034,7 +1034,7 @@ static int qat_hal_concat_micro_code(uint64_t *micro_inst, ...@@ -1034,7 +1034,7 @@ static int qat_hal_concat_micro_code(uint64_t *micro_inst,
unsigned int inst_num, unsigned int size, unsigned int inst_num, unsigned int size,
unsigned int addr, unsigned int *value) unsigned int addr, unsigned int *value)
{ {
int i, val_indx; int i;
unsigned int cur_value; unsigned int cur_value;
const uint64_t *inst_arr; const uint64_t *inst_arr;
int fixup_offset; int fixup_offset;
...@@ -1042,8 +1042,7 @@ static int qat_hal_concat_micro_code(uint64_t *micro_inst, ...@@ -1042,8 +1042,7 @@ static int qat_hal_concat_micro_code(uint64_t *micro_inst,
int orig_num; int orig_num;
orig_num = inst_num; orig_num = inst_num;
val_indx = 0; cur_value = value[0];
cur_value = value[val_indx++];
inst_arr = inst_4b; inst_arr = inst_4b;
usize = ARRAY_SIZE(inst_4b); usize = ARRAY_SIZE(inst_4b);
fixup_offset = inst_num; fixup_offset = inst_num;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment