Commit 910dea7f authored by Eric Sesterhenn's avatar Eric Sesterhenn Committed by 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: default avatarEric Sesterhenn <snakebyte@gmx.de>
Signed-off-by: default avatarAdrian Bunk <bunk@stusta.de>
parent 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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment