mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
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 <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
17baa2a2c4
commit
ab4a1f2470
1 changed files with 1 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue