commit-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[hurd] 24/61: ext2fs: simplify expression


From: Samuel Thibault
Subject: [hurd] 24/61: ext2fs: simplify expression
Date: Tue, 27 May 2014 08:32:11 +0000

This is an automated email from the git hooks/post-receive script.

sthibault pushed a commit to branch upstream
in repository hurd.

commit 453e7fc9f7116b4251d6cc5dde5110bdd183797c
Author: Justus Winter <address@hidden>
Date:   Sun Apr 27 13:52:20 2014 +0200

    ext2fs: simplify expression
    
    * ext2fs/pager.c (add_pager_max_prot): Simplify expression.
---
 ext2fs/pager.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/ext2fs/pager.c b/ext2fs/pager.c
index 6e99c83..9116b8c 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. */

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-hurd/hurd.git



reply via email to

[Prev in Thread] Current Thread [Next in Thread]