diff options
author | Stoyan Gaydarov <stoyboyker@gmail.com> | 2009-03-26 10:24:47 -0400 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2009-03-26 10:24:28 -0400 |
commit | 6aa0d3a922c4f58fc36cc1502c6ac72f999e26bb (patch) | |
tree | 36e27fe870cc142115d7aff1a78ad2a927a4a874 /arch/s390/kernel | |
parent | 59f2e69d0f95bc00353628ef33fd534fbb8e3597 (diff) |
[S390] BUG to BUG_ON changes
Signed-off-by: Stoyan Gaydarov <stoyboyker@gmail.com>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/kernel')
-rw-r--r-- | arch/s390/kernel/debug.c | 3 | ||||
-rw-r--r-- | arch/s390/kernel/setup.c | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/arch/s390/kernel/debug.c b/arch/s390/kernel/debug.c index ba03fc0a3a56..39137b9e1622 100644 --- a/arch/s390/kernel/debug.c +++ b/arch/s390/kernel/debug.c | |||
@@ -698,8 +698,7 @@ debug_info_t *debug_register_mode(const char *name, int pages_per_area, | |||
698 | if ((uid != 0) || (gid != 0)) | 698 | if ((uid != 0) || (gid != 0)) |
699 | pr_warning("Root becomes the owner of all s390dbf files " | 699 | pr_warning("Root becomes the owner of all s390dbf files " |
700 | "in sysfs\n"); | 700 | "in sysfs\n"); |
701 | if (!initialized) | 701 | BUG_ON(!initialized); |
702 | BUG(); | ||
703 | mutex_lock(&debug_mutex); | 702 | mutex_lock(&debug_mutex); |
704 | 703 | ||
705 | /* create new debug_info */ | 704 | /* create new debug_info */ |
diff --git a/arch/s390/kernel/setup.c b/arch/s390/kernel/setup.c index 46fc981e02ba..580abb53ce83 100644 --- a/arch/s390/kernel/setup.c +++ b/arch/s390/kernel/setup.c | |||
@@ -134,8 +134,7 @@ void __cpuinit cpu_init(void) | |||
134 | 134 | ||
135 | atomic_inc(&init_mm.mm_count); | 135 | atomic_inc(&init_mm.mm_count); |
136 | current->active_mm = &init_mm; | 136 | current->active_mm = &init_mm; |
137 | if (current->mm) | 137 | BUG_ON(current->mm); |
138 | BUG(); | ||
139 | enter_lazy_tlb(&init_mm, current); | 138 | enter_lazy_tlb(&init_mm, current); |
140 | } | 139 | } |
141 | 140 | ||