aboutsummaryrefslogtreecommitdiff
path: root/include/linux/fpga/fpga-bridge.h
diff options
context:
space:
mode:
authorHarald Freudenberger <[email protected]>2020-09-09 12:02:46 +0200
committerVasily Gorbik <[email protected]>2020-09-14 11:34:20 +0200
commit0d574ad33e5b70383b4cee81024fcb8763aac591 (patch)
treeb3362e212130465a42a3cbdb8e8af4a48e03db03 /include/linux/fpga/fpga-bridge.h
parent180a4c42e541cabe478c3f6e6c986a6b61744407 (diff)
s390/zcrypt: simplify cca_findcard2 loop code
Instead of two times go through the list of available AP devices (which may be up to 256 * 256 entries) this patch reworks the code do only run through once. The price is instead of reporting all possible devices to the caller only the first 256 devices are collected. However, having to choose from 256 AP devices is plenty of resources and should fulfill the caller's requirements. On the other side the loop code is much simplier and more easy to maintain. Signed-off-by: Harald Freudenberger <[email protected]> Reviewed-by: Ingo Franzki <[email protected]> Signed-off-by: Vasily Gorbik <[email protected]>
Diffstat (limited to 'include/linux/fpga/fpga-bridge.h')
0 files changed, 0 insertions, 0 deletions