Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 910dea7f authored by Eric Sesterhenn's avatar Eric Sesterhenn Committed by Adrian Bunk
Browse files

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
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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 */