summaryrefslogtreecommitdiff
path: root/fatfs
diff options
context:
space:
mode:
authorJustus Winter <4winter@informatik.uni-hamburg.de>2014-04-30 01:13:47 +0200
committerJustus Winter <4winter@informatik.uni-hamburg.de>2014-04-30 02:35:18 +0200
commitc9fa217a8ed0c167c41800e892c913c1649463a8 (patch)
treede343c2d7216d7631d4e355a6207736d8ed8c318 /fatfs
parent97737d1ee3ce95e45a1a4aa636cc2e11a106a9f5 (diff)
fatfs: simplify expression
* fatfs/pager.c (add_pager_max_prot): Simplify expression.
Diffstat (limited to 'fatfs')
-rw-r--r--fatfs/pager.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fatfs/pager.c b/fatfs/pager.c
index 8146e648..6180aacf 100644
--- a/fatfs/pager.c
+++ b/fatfs/pager.c
@@ -1008,8 +1008,7 @@ diskfs_max_user_pager_prot ()
max_prot |= upi->max_prot;
/* Stop iterating if MAX_PROT is as filled as it is 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. */