diff options
author | Prasad Joshi <prasadjoshi.linux@gmail.com> | 2012-10-04 17:15:45 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-10-06 03:05:18 +0900 |
commit | ab4a1f247003ad146c1a1067b2ba043922d0dff2 (patch) | |
tree | 809e01b3b9e2c36f74ffece42750211b594a48e8 /fs/proc | |
parent | 17baa2a2c40f2f0330d25819b589a515d36b2d40 (diff) | |
download | blackbird-op-linux-ab4a1f247003ad146c1a1067b2ba043922d0dff2.tar.gz blackbird-op-linux-ab4a1f247003ad146c1a1067b2ba043922d0dff2.zip |
proc_sysctl.c: use BUG_ON instead of BUG
The use of if (!head) BUG(); can be replaced with the single line
BUG_ON(!head).
Signed-off-by: Prasad Joshi <prasadjoshi.linux@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/proc')
-rw-r--r-- | fs/proc/proc_sysctl.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/proc/proc_sysctl.c b/fs/proc/proc_sysctl.c index eb7cc91b7258..dcd56f84db7e 100644 --- a/fs/proc/proc_sysctl.c +++ b/fs/proc/proc_sysctl.c @@ -266,8 +266,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); |