]> git.baikalelectronics.ru Git - kernel.git/commit
proc_sysctl.c: use BUG_ON instead of BUG
authorPrasad Joshi <prasadjoshi.linux@gmail.com>
Fri, 5 Oct 2012 00:15:45 +0000 (17:15 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 5 Oct 2012 18:05:18 +0000 (03:05 +0900)
commitc62a5ad0763092639699ad69af7a0cb7256329a4
tree809e01b3b9e2c36f74ffece42750211b594a48e8
parentfb7613dbb437762a187bd5e1716e2d799b3be68f
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>
fs/proc/proc_sysctl.c