]> git.baikalelectronics.ru Git - kernel.git/commit
staging: ccree: use array for double buffer
authorGilad Ben-Yossef <gilad@benyossef.com>
Sun, 7 Jan 2018 12:14:28 +0000 (12:14 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 8 Jan 2018 15:27:23 +0000 (16:27 +0100)
commit56f68485c90efbf1af7de7e5602dcfce0179efc7
tree6beb5f517157d68128f7d0493d658ef706abbc0d
parent84eb8db9ad54e8adf10a7d16ab27a331e18836ee
staging: ccree: use array for double buffer

The ccree hash code is using a double buffer to hold data
for processing but manages the buffers and their associated
data count in two separate fields and uses a predicate to
chose which to use.

Move to using a proper 2 members array for a much cleaner code.

Signed-off-by: Gilad Ben-Yossef <gilad@benyossef.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ccree/ssi_buffer_mgr.c
drivers/staging/ccree/ssi_hash.c
drivers/staging/ccree/ssi_hash.h