summaryrefslogtreecommitdiff
path: root/debian/patches/ext2fs-simplify-expression.patch
diff options
context:
space:
mode:
authorJustus Winter <4winter@informatik.uni-hamburg.de>2014-04-26 14:48:58 +0200
committerJustus Winter <4winter@informatik.uni-hamburg.de>2014-04-26 14:48:58 +0200
commit3d6bb4ff40ff5a45182f3f3fc0b35e09821d8068 (patch)
tree6ac38d3471186ef12e0c608cdfc74ba74cc8e1d3 /debian/patches/ext2fs-simplify-expression.patch
parentdc60b6a78774294793387879800a0544bc780698 (diff)
more patches
Diffstat (limited to 'debian/patches/ext2fs-simplify-expression.patch')
-rw-r--r--debian/patches/ext2fs-simplify-expression.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/debian/patches/ext2fs-simplify-expression.patch b/debian/patches/ext2fs-simplify-expression.patch
new file mode 100644
index 00000000..a8c59d7a
--- /dev/null
+++ b/debian/patches/ext2fs-simplify-expression.patch
@@ -0,0 +1,22 @@
+commit 716360ea1ad789678c0395d19b65d073546a5be5
+Author: Justus Winter <4winter@informatik.uni-hamburg.de>
+Date: Sat Apr 26 12:30:06 2014 +0200
+
+ ext2fs: simplify expression
+
+ * ext2fs/pager.c (add_pager_max_prot): Simplify expression.
+
+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. */