Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 362848
b: refs/heads/master
c: fff0ee3
h: refs/heads/master
v: v3
  • Loading branch information
Shuah Khan authored and Bjorn Helgaas committed Mar 26, 2013
1 parent 47f78a3 commit b0a80c8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 85467136cdcc674f30beb0e5b79f048fe3a6a76f
refs/heads/master: fff0ee3640d55c1df4e9da6084b20e2b3345abec
4 changes: 1 addition & 3 deletions trunk/drivers/pci/pcie/aer/aerdrv_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,6 @@ static int add_error_device(struct aer_err_info *e_info, struct pci_dev *dev)
return -ENOSPC;
}

#define PCI_BUS(x) (((x) >> 8) & 0xff)

/**
* is_error_source - check whether the device is source of reported error
* @dev: pointer to pci_dev to be checked
Expand All @@ -106,7 +104,7 @@ static bool is_error_source(struct pci_dev *dev, struct aer_err_info *e_info)
* When bus id is equal to 0, it might be a bad id
* reported by root port.
*/
if (!nosourceid && (PCI_BUS(e_info->id) != 0)) {
if (!nosourceid && (PCI_BUS_NUM(e_info->id) != 0)) {
/* Device ID match? */
if (e_info->id == ((dev->bus->number << 8) | dev->devfn))
return true;
Expand Down

0 comments on commit b0a80c8

Please sign in to comment.