PCI: check pci_vpd_pci22_wait() return
commitd97ecd819137118b4686a753415f93215a6edacf
authorGreg Thelen <gthelen@google.com>
Sun, 17 Apr 2011 15:22:21 +0000 (17 08:22 -0700)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Tue, 10 May 2011 22:43:35 +0000 (10 15:43 -0700)
tree68148c65b62796b9d99b1b48ddcd64c4aec6b19c
parentb6d95bb63ce6cea7c1a344aa46bbd6e253a3f6ce
PCI: check pci_vpd_pci22_wait() return

pci_vpd_pci22_write() calls pci_vpd_pci22_wait() after writing
PCI_VPD_DATA and PCI_VPD_ADDR to wait for the VPD operation to complete.
The result pci_vpd_pci22_wait() was not checked for error.

This change checks for error.

Signed-off-by: Greg Thelen <gthelen@google.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
drivers/pci/access.c