summaryrefslogtreecommitdiffstats
path: root/arch/parisc/kernel/cache.c
diff options
context:
space:
mode:
authorHelge Deller <deller@gmx.de>2009-01-06 12:57:01 +0100
committerKyle McMartin <kyle@treachery.i.cabal.ca>2009-03-13 06:16:35 +0100
commit8980a7baf93e478205e32ec7d6ef3bfb6c0bdfa7 (patch)
treed70fd28dffc27959531d899a8c58954403f90358 /arch/parisc/kernel/cache.c
parentLinus 2.6.29-rc8 (diff)
downloadlinux-8980a7baf93e478205e32ec7d6ef3bfb6c0bdfa7.tar.xz
linux-8980a7baf93e478205e32ec7d6ef3bfb6c0bdfa7.zip
parisc: BUG_ON() cleanup
- convert a few "if (xx) BUG();" to BUG_ON(xx) - remove a few printk()s, as we get a backtrace with BUG_ON() anyway Signed-off-by: Helge Deller <deller@gmx.de> Signed-off-by: Kyle McMartin <kyle@mcmartin.ca>
Diffstat (limited to 'arch/parisc/kernel/cache.c')
-rw-r--r--arch/parisc/kernel/cache.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/arch/parisc/kernel/cache.c b/arch/parisc/kernel/cache.c
index 5259d8c20676..837530ea32e7 100644
--- a/arch/parisc/kernel/cache.c
+++ b/arch/parisc/kernel/cache.c
@@ -551,10 +551,7 @@ void flush_cache_range(struct vm_area_struct *vma,
{
int sr3;
- if (!vma->vm_mm->context) {
- BUG();
- return;
- }
+ BUG_ON(!vma->vm_mm->context);
sr3 = mfsp(3);
if (vma->vm_mm->context == sr3) {