Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 790
b: refs/heads/master
c: 6e3e98d
h: refs/heads/master
v: v3
  • Loading branch information
Adrian Bunk authored and Linus Torvalds committed May 1, 2005
1 parent a023564 commit cc4a72e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 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: 408b664a7d394a5e4315fbd14aca49b042cb2b08
refs/heads/master: 6e3e98d1dcf944b999757b769d910f2b506ca5b9
4 changes: 3 additions & 1 deletion trunk/drivers/pnp/pnpbios/rsparser.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,9 @@ static void
pnpbios_parse_allocated_dmaresource(struct pnp_resource_table * res, int dma)
{
int i = 0;
while (!(res->dma_resource[i].flags & IORESOURCE_UNSET) && i < PNP_MAX_DMA) i++;
while (i < PNP_MAX_DMA &&
!(res->dma_resource[i].flags & IORESOURCE_UNSET))
i++;
if (i < PNP_MAX_DMA) {
res->dma_resource[i].flags = IORESOURCE_DMA; // Also clears _UNSET flag
if (dma == -1) {
Expand Down

0 comments on commit cc4a72e

Please sign in to comment.