提交 910dea7f 编写于 作者: E Eric Sesterhenn 提交者: Adrian Bunk

BUG_ON() Conversion in kernel/fork.c

this changes if() BUG(); constructs to BUG_ON() which is
cleaner, contains unlikely() and can better optimized away.
Signed-off-by: NEric Sesterhenn <snakebyte@gmx.de>
Signed-off-by: NAdrian Bunk <bunk@stusta.de>
上级 27315c96
...@@ -769,8 +769,7 @@ int unshare_files(void) ...@@ -769,8 +769,7 @@ int unshare_files(void)
struct files_struct *files = current->files; struct files_struct *files = current->files;
int rc; int rc;
if(!files) BUG_ON(!files);
BUG();
/* This can race but the race causes us to copy when we don't /* This can race but the race causes us to copy when we don't
need to and drop the copy */ need to and drop the copy */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册