projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
27315c9
)
BUG_ON() Conversion in kernel/fork.c
author
Eric Sesterhenn
<snakebyte@gmx.de>
Sun, 26 Mar 2006 16:29:26 +0000
(18:29 +0200)
committer
Adrian Bunk
<bunk@stusta.de>
Sun, 26 Mar 2006 16:29:26 +0000
(18:29 +0200)
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>
kernel/fork.c
patch
|
blob
|
blame
|
history
diff --git
a/kernel/fork.c
b/kernel/fork.c
index a02063903aaabffcad69de5b662183f7ca5b1c97..d93ab2ba729c9e5b5b16a8a2d796b823765a92c3 100644
(file)
--- 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 */