summaryrefslogtreecommitdiff
path: root/ext2fs
diff options
context:
space:
mode:
authorJustus Winter <4winter@informatik.uni-hamburg.de>2014-04-27 13:52:20 +0200
committerJustus Winter <4winter@informatik.uni-hamburg.de>2014-04-29 12:38:58 +0200
commit453e7fc9f7116b4251d6cc5dde5110bdd183797c (patch)
tree9afea4cea51658b69a9a75a67e7e32b2dc91749d /ext2fs
parent749820d7dcf8ba05d025f985f0fdc17bd6658489 (diff)
ext2fs: simplify expression
* ext2fs/pager.c (add_pager_max_prot): Simplify expression.
Diffstat (limited to 'ext2fs')
-rw-r--r--ext2fs/pager.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ext2fs/pager.c b/ext2fs/pager.c
index 6e99c837..9116b8c7 100644
--- a/ext2fs/pager.c
+++ b/ext2fs/pager.c
@@ -1453,8 +1453,7 @@ diskfs_max_user_pager_prot ()
if (upi->type == FILE_DATA)
max_prot |= upi->max_prot;
/* Stop iterating if MAX_PROT is as filled as it's going to get. */
- return
- (max_prot == (VM_PROT_READ|VM_PROT_WRITE|VM_PROT_EXECUTE)) ? 1 : 0;
+ return max_prot == (VM_PROT_READ|VM_PROT_WRITE|VM_PROT_EXECUTE);
}
disable_caching (); /* Make any silly pagers go away. */