Skip to contentSkip to conversation

mm: fix a coding style issue

PATCH New Kristaps Civkulis 2 participants 3 messages Mar 23, 2017 – Mar 24, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 3/3 mm: fix a coding style issue

Fix a coding style issue.

---
 mm/hugetlb.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
mm/hugetlb.c +1 -2
index 3d0aab9ee80d..4c72c1974c8c 100644
@@ -1916,8 +1916,7 @@ static long __vma_reservation_common(struct hstate *h,
 			return 0;
 		else
 			return 1;
-	}
-	else
+	} else
 		return ret < 0 ? ret : 0;
 }
 
Signature · 7 lines
2.12.0

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected].  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
#1 lore raw

PATCH 1/1 mm: fix a coding style issue

Fix a coding style issue.

---
Resend, because it should be only [PATCH] in subject.

---
 mm/hugetlb.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
mm/hugetlb.c +1 -2
index 3d0aab9ee80d..4c72c1974c8c 100644
@@ -1916,8 +1916,7 @@ static long __vma_reservation_common(struct hstate *h,
 			return 0;
 		else
 			return 1;
-	}
-	else
+	} else
 		return ret < 0 ? ret : 0;
 }
 
Signature · 7 lines
2.12.0

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected].  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
#2 lore raw
Quoted 1 line · Kristaps Civkulis

Fix a coding style issue.

I believe style fixes are worth applying only when part of a larger change which does something useful or where the resulting code is much easier to read. This doesn't seem to be the case here.

Quoted 24 lines

---
Resend, because it should be only [PATCH] in subject.

---
 mm/hugetlb.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
mm/hugetlb.c +1 -2
index 3d0aab9ee80d..4c72c1974c8c 100644
@@ -1916,8 +1916,7 @@ static long __vma_reservation_common(struct hstate *h,
 			return 0;
 		else
 			return 1;
-	}
-	else
+	} else
 		return ret < 0 ? ret : 0;
 }
 
Signature · 1 line
2.12.0
Signature · 8 lines
Michal Hocko
SUSE Labs

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected].  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>