projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6a4055b
)
include/linux/mm.h: simplify flag check
author
Borislav Petkov
<
[email protected]
>
Wed, 15 Apr 2015 23:14:47 +0000
(16:14 -0700)
committer
Linus Torvalds
<
[email protected]
>
Wed, 15 Apr 2015 23:35:19 +0000
(16:35 -0700)
Flip the flag test so that it is the simplest. No functional change, just
a small readability improvement:
No code changed:
# arch/x86/kernel/sys_x86_64.o:
text data bss dec hex filename
1551 24 0 1575 627 sys_x86_64.o.before
1551 24 0 1575 627 sys_x86_64.o.after
md5:
70708d1b1ad35cc891118a69dc1a63f9
sys_x86_64.o.before.asm
70708d1b1ad35cc891118a69dc1a63f9
sys_x86_64.o.after.asm
Signed-off-by: Borislav Petkov <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
include/linux/mm.h
patch
|
blob
|
history
diff --git
a/include/linux/mm.h
b/include/linux/mm.h
index 515ec5045b60b7e5db07b66b5c87a478673f3aa4..68c21b2374c480dc7f6b26e53a2e5dda56365a77 100644
(file)
--- a/
include/linux/mm.h
+++ b/
include/linux/mm.h
@@
-1894,10
+1894,10
@@
extern unsigned long unmapped_area_topdown(struct vm_unmapped_area_info *info);
static inline unsigned long
vm_unmapped_area(struct vm_unmapped_area_info *info)
{
- if (!(info->flags & VM_UNMAPPED_AREA_TOPDOWN))
- return unmapped_area(info);
- else
+ if (info->flags & VM_UNMAPPED_AREA_TOPDOWN)
return unmapped_area_topdown(info);
+ else
+ return unmapped_area(info);
}
/* truncate.c */