From c9fa217a8ed0c167c41800e892c913c1649463a8 Mon Sep 17 00:00:00 2001 From: Justus Winter <4winter@informatik.uni-hamburg.de> Date: Wed, 30 Apr 2014 01:13:47 +0200 Subject: fatfs: simplify expression * fatfs/pager.c (add_pager_max_prot): Simplify expression. --- fatfs/pager.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'fatfs') 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. */ -- cgit v1.2.3