Commit-ID: 3af7111e2066a641510c16a4e9e82dd81550115b Gitweb: http://git.kernel.org/tip/3af7111e2066a641510c16a4e9e82dd81550115b Author: H. Peter Anvin <hpa@xxxxxxxxxxxxxxx> AuthorDate: Wed, 19 Feb 2014 20:46:57 -0800 Committer: H. Peter Anvin <hpa@xxxxxxxxxxxxxxx> CommitDate: Wed, 19 Feb 2014 20:46:57 -0800 mm: Clean up style in install_special_mapping() We can clean up the style in install_special_mapping(), and make it use PTR_ERR_OR_ZERO(). Reported-by: kbuild test robot <fengguang.wu@xxxxxxxxx> Link: http://lkml.kernel.org/r/1392587568-7325-3-git-send-email-stefani@xxxxxxxxxxx Signed-off-by: H. Peter Anvin <hpa@xxxxxxxxxxxxxxx> --- mm/mmap.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/mm/mmap.c b/mm/mmap.c index 81ba54f..6b78a77 100644 --- a/mm/mmap.c +++ b/mm/mmap.c @@ -2959,12 +2959,10 @@ int install_special_mapping(struct mm_struct *mm, unsigned long addr, unsigned long len, unsigned long vm_flags, struct page **pages) { - struct vm_area_struct *vma = _install_special_mapping(mm, - addr, len, vm_flags, pages); + struct vm_area_struct *vma; - if (IS_ERR(vma)) - return PTR_ERR(vma); - return 0; + vma = _install_special_mapping(mm, addr, len, vm_flags, pages); + return PTR_ERR_OR_ZERO(vma); } static DEFINE_MUTEX(mm_all_locks_mutex); -- To unsubscribe from this list: send the line "unsubscribe linux-tip-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html