mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 02:39:48 +00:00
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>
This commit is contained in:
parent
ebd9cc6593
commit
85ad27215c
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
rc = clp_list_pci_req(rrb, &resume_token, &nentries);
|
||||||
if (rc)
|
if (rc)
|
||||||
return rc;
|
return rc;
|
||||||
|
fh_list = rrb->response.fh_list;
|
||||||
for (i = 0; i < nentries; i++) {
|
for (i = 0; i < nentries; i++) {
|
||||||
fh_list = rrb->response.fh_list;
|
|
||||||
if (fh_list[i].fid == fid) {
|
if (fh_list[i].fid == fid) {
|
||||||
*entry = fh_list[i];
|
*entry = fh_list[i];
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in a new issue