Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 343026
b: refs/heads/master
c: 8166ea0
h: refs/heads/master
v: v3
  • Loading branch information
Sasha Levin authored and Jiri Kosina committed Nov 8, 2012
1 parent e22ca4a commit 731efaa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 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: 926ccfef82413623ae0e5c3a32d0cad2b9f33e96
refs/heads/master: 8166ea07cb89208f6beb9aa6aed554250f150cc8
12 changes: 4 additions & 8 deletions trunk/arch/alpha/kernel/pci_iommu.c
Original file line number Diff line number Diff line change
Expand Up @@ -354,8 +354,7 @@ static dma_addr_t alpha_pci_map_page(struct device *dev, struct page *page,
struct pci_dev *pdev = alpha_gendev_to_pci(dev);
int dac_allowed;

if (dir == PCI_DMA_NONE)
BUG();
BUG_ON(dir == PCI_DMA_NONE);

dac_allowed = pdev ? pci_dac_dma_supported(pdev, pdev->dma_mask) : 0;
return pci_map_single_1(pdev, (char *)page_address(page) + offset,
Expand All @@ -378,8 +377,7 @@ static void alpha_pci_unmap_page(struct device *dev, dma_addr_t dma_addr,
struct pci_iommu_arena *arena;
long dma_ofs, npages;

if (dir == PCI_DMA_NONE)
BUG();
BUG_ON(dir == PCI_DMA_NONE);

if (dma_addr >= __direct_map_base
&& dma_addr < __direct_map_base + __direct_map_size) {
Expand Down Expand Up @@ -662,8 +660,7 @@ static int alpha_pci_map_sg(struct device *dev, struct scatterlist *sg,
dma_addr_t max_dma;
int dac_allowed;

if (dir == PCI_DMA_NONE)
BUG();
BUG_ON(dir == PCI_DMA_NONE);

dac_allowed = dev ? pci_dac_dma_supported(pdev, pdev->dma_mask) : 0;

Expand Down Expand Up @@ -742,8 +739,7 @@ static void alpha_pci_unmap_sg(struct device *dev, struct scatterlist *sg,
dma_addr_t max_dma;
dma_addr_t fbeg, fend;

if (dir == PCI_DMA_NONE)
BUG();
BUG_ON(dir == PCI_DMA_NONE);

if (! alpha_mv.mv_pci_tbi)
return;
Expand Down

0 comments on commit 731efaa

Please sign in to comment.