summaryrefslogtreecommitdiffstats
path: root/arch/frv/include
diff options
context:
space:
mode:
authorStoyan Gaydarov <stoyboyker@gmail.com>2009-06-11 13:05:04 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2009-06-11 09:01:26 -0700
commitdb5c444eeb781788a0db36a2682b2417cf71f764 (patch)
tree4b3399696f7915eeb7ab9f9c125cac8c486a6bf0 /arch/frv/include
parentd2f11bf7fc630e27dfcede367399dddf40521878 (diff)
downloadblackbird-op-linux-db5c444eeb781788a0db36a2682b2417cf71f764.tar.gz
blackbird-op-linux-db5c444eeb781788a0db36a2682b2417cf71f764.zip
FRV: BUG to BUG_ON changes
Change some BUG()'s to BUG_ON()'s. Signed-off-by: Stoyan Gaydarov <stoyboyker@gmail.com> Signed-off-by: David Howells <dhowells@redhat.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/frv/include')
-rw-r--r--arch/frv/include/asm/pci.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/arch/frv/include/asm/pci.h b/arch/frv/include/asm/pci.h
index 585d9b49949a..cc685e60b0f9 100644
--- a/arch/frv/include/asm/pci.h
+++ b/arch/frv/include/asm/pci.h
@@ -87,8 +87,7 @@ static inline void pci_dma_sync_single(struct pci_dev *hwdev,
dma_addr_t dma_handle,
size_t size, int direction)
{
- if (direction == PCI_DMA_NONE)
- BUG();
+ BUG_ON(direction == PCI_DMA_NONE);
frv_cache_wback_inv((unsigned long)bus_to_virt(dma_handle),
(unsigned long)bus_to_virt(dma_handle) + size);
@@ -105,9 +104,7 @@ static inline void pci_dma_sync_sg(struct pci_dev *hwdev,
int nelems, int direction)
{
int i;
-
- if (direction == PCI_DMA_NONE)
- BUG();
+ BUG_ON(direction == PCI_DMA_NONE);
for (i = 0; i < nelems; i++)
frv_cache_wback_inv(sg_dma_address(&sg[i]),
OpenPOWER on IntegriCloud