mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-03-30 02:54:35 +00:00
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: Eric Sesterhenn <snakebyte@gmx.de> Signed-off-by: Adrian Bunk <bunk@stusta.de>
This commit is contained in:
parent
27315c96a4
commit
910dea7fdd
1 changed files with 1 additions and 2 deletions
|
@ -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 */
|
||||||
|
|
Loading…
Add table
Reference in a new issue