Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 339864
b: refs/heads/master
c: f7a9b36
h: refs/heads/master
v: v3
  • Loading branch information
Sasha Levin authored and Linus Walleij committed Nov 17, 2012
1 parent 63b5001 commit 3c96953
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 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: 379df2793efdca18e91cb8570f844ad1f83eb609
refs/heads/master: f7a9b36517d38cfa2213a346b154d2d7046ff223
9 changes: 3 additions & 6 deletions trunk/arch/arm/mach-integrator/pci_v3.c
Original file line number Diff line number Diff line change
Expand Up @@ -191,12 +191,9 @@ static void __iomem *v3_open_config_window(struct pci_bus *bus,
/*
* Trap out illegal values
*/
if (offset > 255)
BUG();
if (busnr > 255)
BUG();
if (devfn > 255)
BUG();
BUG_ON(offset > 255);
BUG_ON(busnr > 255);
BUG_ON(devfn > 255);

if (busnr == 0) {
int slot = PCI_SLOT(devfn);
Expand Down

0 comments on commit 3c96953

Please sign in to comment.