Skip to content

Commit

Permalink
amd64_edac: wrap-up pci config read error handling
Browse files Browse the repository at this point in the history
Add a pci config read wrapper for signaling pci config space access
errors instead of them being visible only on a debug build. This is
important on amd64_edac since it uses all those pci config register
values to access the DRAM/DIMM configuration of the nodes.

In addition, the wrapper makes a _lot_ (look at the diffstat!) of
error handling code superfluous and improves much of the overall code
readability by removing error handling details out of the way.

Signed-off-by: Borislav Petkov <borislav.petkov@amd.com>
  • Loading branch information
Borislav Petkov committed Dec 7, 2009
1 parent f6d6ae9 commit 6ba5dcd
Show file tree
Hide file tree
Showing 2 changed files with 70 additions and 159 deletions.
Loading

0 comments on commit 6ba5dcd

Please sign in to comment.