[PATCH 19/25] [sysctl.c] BUG to BUG_ON changes

From: Stoyan Gaydarov
Date: Tue Mar 10 2009 - 01:17:57 EST


Signed-off-by: Stoyan Gaydarov <stoyboyker@xxxxxxxxx>
---
kernel/sysctl.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/kernel/sysctl.c b/kernel/sysctl.c
index c5ef44f..ae992c4 100644
--- a/kernel/sysctl.c
+++ b/kernel/sysctl.c
@@ -1513,8 +1513,7 @@ void sysctl_head_put(struct ctl_table_header *head)

struct ctl_table_header *sysctl_head_grab(struct ctl_table_header *head)
{
- if (!head)
- BUG();
+ BUG_ON(!head);
spin_lock(&sysctl_lock);
if (!use_table(head))
head = ERR_PTR(-ENOENT);
--
1.6.1.3

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/