diff options
author | Eric Sesterhenn <snakebyte@gmx.de> | 2006-03-26 18:29:26 +0200 |
---|---|---|
committer | Adrian Bunk <bunk@stusta.de> | 2006-03-26 18:29:26 +0200 |
commit | 910dea7fdda22f0ee83d26d459e460c79ed94557 (patch) | |
tree | 46e68906b0026e11ed567cedb7993060c89da9e2 /kernel | |
parent | 27315c96a4c3d5f24a902111dae537cdc28302e4 (diff) | |
download | op-kernel-dev-910dea7fdda22f0ee83d26d459e460c79ed94557.zip op-kernel-dev-910dea7fdda22f0ee83d26d459e460c79ed94557.tar.gz |
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>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/fork.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/kernel/fork.c b/kernel/fork.c index a020639..d93ab2b 100644 --- a/kernel/fork.c +++ b/kernel/fork.c @@ -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 */ |