Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 35655
b: refs/heads/master
c: 3a75036
h: refs/heads/master
i:
  35653: 25573f1
  35651: 7999729
  35647: 2d9c780
v: v3
  • Loading branch information
Rolf Eike Beer authored and Linus Torvalds committed Sep 26, 2006
1 parent 77a3a63 commit 94b93e9
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: 99325326a57b6a56595bb097655bee9fd27d77b0
refs/heads/master: 3a750363e6075a28e5542ce93a69c620c0cfd605
9 changes: 3 additions & 6 deletions trunk/include/asm-i386/dma-mapping.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ static inline dma_addr_t
dma_map_single(struct device *dev, void *ptr, size_t size,
enum dma_data_direction direction)
{
if (direction == DMA_NONE)
BUG();
BUG_ON(direction == DMA_NONE);
WARN_ON(size == 0);
flush_write_buffers();
return virt_to_phys(ptr);
Expand All @@ -32,8 +31,7 @@ static inline void
dma_unmap_single(struct device *dev, dma_addr_t dma_addr, size_t size,
enum dma_data_direction direction)
{
if (direction == DMA_NONE)
BUG();
BUG_ON(direction == DMA_NONE);
}

static inline int
Expand All @@ -42,8 +40,7 @@ dma_map_sg(struct device *dev, struct scatterlist *sg, int nents,
{
int i;

if (direction == DMA_NONE)
BUG();
BUG_ON(direction == DMA_NONE);
WARN_ON(nents == 0 || sg[0].length == 0);

for (i = 0; i < nents; i++ ) {
Expand Down

0 comments on commit 94b93e9

Please sign in to comment.