diff options
author | Justus Winter <4winter@informatik.uni-hamburg.de> | 2014-04-27 13:52:20 +0200 |
---|---|---|
committer | Justus Winter <4winter@informatik.uni-hamburg.de> | 2014-04-29 12:38:58 +0200 |
commit | 453e7fc9f7116b4251d6cc5dde5110bdd183797c (patch) | |
tree | 9afea4cea51658b69a9a75a67e7e32b2dc91749d /ext2fs | |
parent | 749820d7dcf8ba05d025f985f0fdc17bd6658489 (diff) |
ext2fs: simplify expression
* ext2fs/pager.c (add_pager_max_prot): Simplify expression.
Diffstat (limited to 'ext2fs')
-rw-r--r-- | ext2fs/pager.c | 3 |
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. */ |