]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
s390/pci: PCI function group 0 is valid for clp_query_pci_fn
authorPierre Morel <pmorel@linux.vnet.ibm.com>
Wed, 16 Mar 2016 12:56:35 +0000 (13:56 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Fri, 1 Apr 2016 06:42:35 +0000 (08:42 +0200)
The PCI function group 0 is a valid function group,
it is wrong to reject it.

Let's accept PCI function group 0.

Signed-off-by: Pierre Morel <pmorel@linux.vnet.ibm.com>
Acked-by: Sebastian Ott <sebott@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/pci/pci_clp.c

index 21591ddb4c1fddcd59aeb1d990f484040e57aeae..1a4512c8544ad6f516108e9eef2b4a8e22dfc5c1 100644 (file)
@@ -176,8 +176,7 @@ static int clp_query_pci_fn(struct zpci_dev *zdev, u32 fh)
                rc = clp_store_query_pci_fn(zdev, &rrb->response);
                if (rc)
                        goto out;
-               if (rrb->response.pfgid)
-                       rc = clp_query_pci_fngrp(zdev, rrb->response.pfgid);
+               rc = clp_query_pci_fngrp(zdev, rrb->response.pfgid);
        } else {
                zpci_err("Q PCI FN:\n");
                zpci_err_clp(rrb->response.hdr.rsp, rc);