diff options
author | Marian Chereji <marian.chereji@freescale.com> | 2014-09-18 12:24:08 (GMT) |
---|---|---|
committer | Matthew Weigel <Matthew.Weigel@freescale.com> | 2014-12-11 18:39:39 (GMT) |
commit | 21b1cbb87f323f902946bcc0ee29b8d28254f32f (patch) | |
tree | 33ef7cb43e61b8c6560bf59f41bb608afa5b1646 /drivers | |
parent | 03bf4aea43b7986428afcf5bef7282cdcb390963 (diff) | |
download | linux-fsl-qoriq-21b1cbb87f323f902946bcc0ee29b8d28254f32f.tar.xz |
dpa_offload: Remove useless assignment in dpa_classifier
There is a useless assignment of variable "hmd" in function
"hash_table_modify_entry". It was removed.
Change-Id: I2710a5d13916c8ab56a6e2c8218db721bf61abe5
Signed-off-by: Marian Chereji <marian.chereji@freescale.com>
Reviewed-on: http://git.am.freescale.net:8181/19134
Reviewed-by: Radu-Andrei Bulie <Radu.Bulie@freescale.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/fsl_dpa_offload/dpa_classifier.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/drivers/staging/fsl_dpa_offload/dpa_classifier.c b/drivers/staging/fsl_dpa_offload/dpa_classifier.c index fdd0c45..76ba474 100644 --- a/drivers/staging/fsl_dpa_offload/dpa_classifier.c +++ b/drivers/staging/fsl_dpa_offload/dpa_classifier.c @@ -947,8 +947,7 @@ static int hash_table_modify_entry( hash_set_index = crc64_ecma(key->byte, ptable->params.hash_params.key_size, hash_set_index); - hash_set_index = - (u64)(hash_set_index & ptable->hash_mask) >> + hash_set_index = (u64)(hash_set_index & ptable->hash_mask) >> (8 * (6 - ptable->params.hash_params.hash_offs) + 4); /* @@ -965,12 +964,10 @@ static int hash_table_modify_entry( memset(&key_params, 0, sizeof(t_FmPcdCcKeyParams)); - cc_node_index = - ptable->entry[entry_id].int_cc_node_index; + cc_node_index = ptable->entry[entry_id].int_cc_node_index; entry_index = ptable->entry[entry_id].entry_index; - cc_node = - (t_Handle)ptable->int_cc_node[cc_node_index].cc_node; + cc_node = (t_Handle)ptable->int_cc_node[cc_node_index].cc_node; if (!action) { /* Save action to next engine params */ @@ -998,8 +995,6 @@ static int hash_table_modify_entry( &key_params.ccNextEngineParams); if (err) return -err; - - hmd = ptable->entry[entry_id].hmd; } } else { /* |