]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - fs/proc/proc_sysctl.c
proc_sysctl.c: use BUG_ON instead of BUG
[karo-tx-linux.git] / fs / proc / proc_sysctl.c
index 14c5bdd0ee76b605e4e76b3bdd82699a694664db..608f1870c6eeca530b1323b64c15bb287b243da6 100644 (file)
@@ -265,8 +265,7 @@ void sysctl_head_put(struct ctl_table_header *head)
 
 static 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);