aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Sesterhenn <snakebyte@gmx.de>2006-03-26 11:29:26 -0500
committerAdrian Bunk <bunk@stusta.de>2006-03-26 11:29:26 -0500
commit910dea7fdda22f0ee83d26d459e460c79ed94557 (patch)
tree46e68906b0026e11ed567cedb7993060c89da9e2
parent27315c96a4c3d5f24a902111dae537cdc28302e4 (diff)
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>
-rw-r--r--kernel/fork.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/kernel/fork.c b/kernel/fork.c
index a02063903aaa..d93ab2ba729c 100644
--- a/kernel/fork.c
+++ b/kernel/fork.c
@@ -769,8 +769,7 @@ int unshare_files(void)
769 struct files_struct *files = current->files; 769 struct files_struct *files = current->files;
770 int rc; 770 int rc;
771 771
772 if(!files) 772 BUG_ON(!files);
773 BUG();
774 773
775 /* This can race but the race causes us to copy when we don't 774 /* This can race but the race causes us to copy when we don't
776 need to and drop the copy */ 775 need to and drop the copy */