summaryrefslogtreecommitdiffstats
path: root/arch/frv/kernel
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/kernel
parentd2f11bf7fc630e27dfcede367399dddf40521878 (diff)
downloadop-kernel-dev-db5c444eeb781788a0db36a2682b2417cf71f764.zip
op-kernel-dev-db5c444eeb781788a0db36a2682b2417cf71f764.tar.gz
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/kernel')
-rw-r--r--arch/frv/kernel/uaccess.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/arch/frv/kernel/uaccess.c b/arch/frv/kernel/uaccess.c
index 9fb771a..374f88d 100644
--- a/arch/frv/kernel/uaccess.c
+++ b/arch/frv/kernel/uaccess.c
@@ -23,8 +23,7 @@ long strncpy_from_user(char *dst, const char __user *src, long count)
char *p, ch;
long err = -EFAULT;
- if (count < 0)
- BUG();
+ BUG_ON(count < 0);
p = dst;
@@ -76,8 +75,7 @@ long strnlen_user(const char __user *src, long count)
long err = 0;
char ch;
- if (count < 0)
- BUG();
+ BUG_ON(count < 0);
#ifndef CONFIG_MMU
if ((unsigned long) src < memory_start)
OpenPOWER on IntegriCloud