diff options
author | Pierre Morel <pmorel@linux.ibm.com> | 2021-09-06 08:49:44 +0200 |
---|---|---|
committer | Heiko Carstens <hca@linux.ibm.com> | 2021-09-07 13:38:42 +0200 |
commit | 85ad27215ca57d02bb7c43d76f65a865dc863b59 (patch) | |
tree | 96ac00b1e0aadd55b42c533503f745cda3f24af2 /arch | |
parent | ebd9cc6593691e6bc8526e368cedbdfc8034f403 (diff) |
s390/pci: read clp_list_pci_req only once
We do not have to reset the fh_list in the loop.
Signed-off-by: Pierre Morel <pmorel@linux.ibm.com>
Reviewed-by: Niklas Schnelle <schnelle@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/s390/pci/pci_clp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/s390/pci/pci_clp.c b/arch/s390/pci/pci_clp.c index df895d98a56b..be077b39da33 100644 --- a/arch/s390/pci/pci_clp.c +++ b/arch/s390/pci/pci_clp.c @@ -383,8 +383,8 @@ static int clp_find_pci(struct clp_req_rsp_list_pci *rrb, u32 fid, rc = clp_list_pci_req(rrb, &resume_token, &nentries); if (rc) return rc; + fh_list = rrb->response.fh_list; for (i = 0; i < nentries; i++) { - fh_list = rrb->response.fh_list; if (fh_list[i].fid == fid) { *entry = fh_list[i]; return 0; |