diff options
author | Harald Freudenberger <freude@linux.ibm.com> | 2020-09-09 12:02:46 +0200 |
---|---|---|
committer | Vasily Gorbik <gor@linux.ibm.com> | 2020-09-14 11:34:20 +0200 |
commit | 0d574ad33e5b70383b4cee81024fcb8763aac591 (patch) | |
tree | b3362e212130465a42a3cbdb8e8af4a48e03db03 /crypto/tcrypt.c | |
parent | 180a4c42e541cabe478c3f6e6c986a6b61744407 (diff) | |
download | linux-0d574ad33e5b70383b4cee81024fcb8763aac591.tar.bz2 |
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 <freude@linux.ibm.com>
Reviewed-by: Ingo Franzki <ifranzki@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Diffstat (limited to 'crypto/tcrypt.c')
0 files changed, 0 insertions, 0 deletions