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:
Eric Sesterhenn 2006-03-26 18:29:26 +02:00 коммит произвёл Adrian Bunk
Родитель 27315c96a4
Коммит 910dea7fdd
1 изменённых файлов: 1 добавлений и 2 удалений

Просмотреть файл

@ -769,8 +769,7 @@ int unshare_files(void)
struct files_struct *files = current->files;
int rc;
if(!files)
BUG();
BUG_ON(!files);
/* This can race but the race causes us to copy when we don't
need to and drop the copy */