.. instead use BUG_ON() as all the callers of the kill_domain_by_device
check for psdev.
Suggested-by: Jan Beulich <JBeulich@suse.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
int err;
char nodename[PCI_NODENAME_MAX];
int err;
char nodename[PCI_NODENAME_MAX];
- if (!psdev) {
- dev_err(&psdev->dev->dev,
- "device is NULL when do AER recovery/kill_domain\n");
- return;
- }
-
snprintf(nodename, PCI_NODENAME_MAX, "/local/domain/0/backend/pci/%d/0",
psdev->pdev->xdev->otherend_id);
snprintf(nodename, PCI_NODENAME_MAX, "/local/domain/0/backend/pci/%d/0",
psdev->pdev->xdev->otherend_id);