Skip to content

Commit 85ad272

Browse files
Pierre Morelhcahca
authored andcommitted
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>
1 parent ebd9cc6 commit 85ad272

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/s390/pci/pci_clp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,8 +383,8 @@ static int clp_find_pci(struct clp_req_rsp_list_pci *rrb, u32 fid,
383383
rc = clp_list_pci_req(rrb, &resume_token, &nentries);
384384
if (rc)
385385
return rc;
386+
fh_list = rrb->response.fh_list;
386387
for (i = 0; i < nentries; i++) {
387-
fh_list = rrb->response.fh_list;
388388
if (fh_list[i].fid == fid) {
389389
*entry = fh_list[i];
390390
return 0;

0 commit comments

Comments
 (0)