summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--drivers/pci/endpoint/functions/pci-epf-vntb.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/pci/endpoint/functions/pci-epf-vntb.c b/drivers/pci/endpoint/functions/pci-epf-vntb.c
index 2aee789a370c..a5fa32eab39c 100644
--- a/drivers/pci/endpoint/functions/pci-epf-vntb.c
+++ b/drivers/pci/endpoint/functions/pci-epf-vntb.c
@@ -1321,7 +1321,8 @@ static int epf_ntb_bind(struct pci_epf *epf)
pci_vntb_table[0].vendor = ntb->vntb_vid;
pci_vntb_table[0].device = ntb->vntb_pid;
- if (pci_register_driver(&vntb_pci_driver)) {
+ ret = pci_register_driver(&vntb_pci_driver);
+ if (ret) {
dev_err(dev, "failure register vntb pci driver\n");
goto err_bar_alloc;
}