[PATCH 3/3] mm: fix a coding style issue
Fix a coding style issue. Signed-off-by: Kristaps Civkulis--- mm/hugetlb.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mm/hugetlb.c b/mm/hugetlb.c index 3d0aab9ee80d..4c72c1974c8c 100644 --- a/mm/hugetlb.c +++ b/mm/hugetlb.c @@ -1916,8 +1916,7 @@ static long __vma_reservation_common(struct hstate *h, return 0; else return 1; - } - else + } else return ret < 0 ? ret : 0; } -- 2.12.0
[PATCH 3/3] mm: fix a coding style issue
Fix a coding style issue. Signed-off-by: Kristaps Civkulis --- mm/hugetlb.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mm/hugetlb.c b/mm/hugetlb.c index 3d0aab9ee80d..4c72c1974c8c 100644 --- a/mm/hugetlb.c +++ b/mm/hugetlb.c @@ -1916,8 +1916,7 @@ static long __vma_reservation_common(struct hstate *h, return 0; else return 1; - } - else + } else return ret < 0 ? ret : 0; } -- 2.12.0