---
Robert Elliott, HP Server Storage

> -----Original Message-----
> From: linux-kernel-ow...@vger.kernel.org [mailto:linux-kernel-
> ow...@vger.kernel.org] On Behalf Of Pan Xinhui
> Sent: Wednesday, July 22, 2015 8:27 AM
...
> diff --git a/arch/x86/mm/pat.c b/arch/x86/mm/pat.c
> index 188e3e0..8fa1f07 100644
> --- a/arch/x86/mm/pat.c
> +++ b/arch/x86/mm/pat.c
> @@ -521,10 +521,7 @@ int reserve_memtype(u64 start, u64 end, enum
> page_cache_mode req_type,
> 
>       is_range_ram = pat_pagerange_is_ram(start, end);
>       if (is_range_ram == 1) {
> -
> -             err = reserve_ram_pages_type(start, end, req_type, new_type);
> -
> -             return err;
> +             return reserve_ram_pages_type(start, end, req_type, new_type);
>       } else if (is_range_ram < 0) {
>               return -EINVAL;
>       }

With each branch now just one line, the {} can be removed.



N�����r��y����b�X��ǧv�^�)޺{.n�+����{����zX����ܨ}���Ơz�&j:+v�������zZ+��+zf���h���~����i���z��w���?�����&�)ߢf��^jǫy�m��@A�a���
0��h���i

Reply via email to