bug-hurd
[Top][All Lists]
Advanced

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

Re: [PATCH 1/4] fatfs: simplify expression


From: Samuel Thibault
Subject: Re: [PATCH 1/4] fatfs: simplify expression
Date: Wed, 30 Apr 2014 11:08:50 +0200
User-agent: Mutt/1.5.21+34 (58baf7c9f32f) (2010-12-30)

Justus Winter, le Wed 30 Apr 2014 11:05:59 +0200, a écrit :
> * fatfs/pager.c (add_pager_max_prot): Simplify expression.

Ack.

> ---
>  fatfs/pager.c | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
> 
> diff --git a/fatfs/pager.c b/fatfs/pager.c
> index 8146e64..6180aac 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.  */
> -- 
> 1.9.2
> 

-- 
Samuel
> Allez, soyez sympa ... traduisez-lui "linux"
Linux, c'est comme le miel : c'est vachement bon mais ça attire les
mouches. En plus, ça colle aux doigts et on a du mal à s'en défaire.
-+- TP in: Guide du linuxien pervers - "Barrez vous les mouches !"



reply via email to

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