staging: ccree: replace open coded loop with for
authorGilad Ben-Yossef <gilad@benyossef.com>
Mon, 13 Nov 2017 14:45:37 +0000 (14:45 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 27 Nov 2017 08:20:39 +0000 (09:20 +0100)
commitadd496c0ba9c5b894f9a5e797a654488ba9822dd
treef32df790f03c847f2d3cceb68cdd7cc173dea879
parent2712dc7b01ec4f76a9aef60699bc4d896e75c427
staging: ccree: replace open coded loop with for

Replace open coded register writing loop with a for.
Further simplify code by using a local var to precompute
the register address for readability.

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