diff options
author | Borislav Petkov <bp@suse.de> | 2015-04-15 19:14:47 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-04-15 19:35:19 -0400 |
commit | cdd7875e0c4db5c41e28b645d3bf7d41bd2cbb45 (patch) | |
tree | 486bcaabd95cf1d74a8cc97af67e29563e15f2e0 | |
parent | 6a4055bc72a516bae3f607eda3e243d18e66bd49 (diff) |
include/linux/mm.h: simplify flag check
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 <bp@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r-- | include/linux/mm.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/linux/mm.h b/include/linux/mm.h index 515ec5045b60..68c21b2374c4 100644 --- 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); | |||
1894 | static inline unsigned long | 1894 | static inline unsigned long |
1895 | vm_unmapped_area(struct vm_unmapped_area_info *info) | 1895 | vm_unmapped_area(struct vm_unmapped_area_info *info) |
1896 | { | 1896 | { |
1897 | if (!(info->flags & VM_UNMAPPED_AREA_TOPDOWN)) | 1897 | if (info->flags & VM_UNMAPPED_AREA_TOPDOWN) |
1898 | return unmapped_area(info); | ||
1899 | else | ||
1900 | return unmapped_area_topdown(info); | 1898 | return unmapped_area_topdown(info); |
1899 | else | ||
1900 | return unmapped_area(info); | ||
1901 | } | 1901 | } |
1902 | 1902 | ||
1903 | /* truncate.c */ | 1903 | /* truncate.c */ |