Skip to contentSkip to conversation

x86: intel_cacheinfo, minor show_type cleanup

PATCH Applied Jiri Slaby 2 participants 2 messages Nov 29, 2008 – Nov 30, 2008 x86

lore
Share & tools
lore

Jiri Slaby

author
#0 lore raw

PATCH 1/1 x86: intel_cacheinfo, minor show_type cleanup

---
 arch/x86/kernel/cpu/intel_cacheinfo.c |   17 +++++++----------
 1 files changed, 7 insertions(+), 10 deletions(-)
arch/x86/kernel/cpu/intel_cacheinfo.c +7 -10
index 43ea612..15cf14e 100644
@@ -644,20 +644,17 @@ static inline ssize_t show_shared_cpu_list(struct _cpuid4_info *leaf, char *buf)
 	return show_shared_cpu_map_func(leaf, 1, buf);
 }
 
-static ssize_t show_type(struct _cpuid4_info *this_leaf, char *buf) {
-	switch(this_leaf->eax.split.type) {
-	    case CACHE_TYPE_DATA:
+static ssize_t show_type(struct _cpuid4_info *this_leaf, char *buf)
+{
+	switch (this_leaf->eax.split.type) {
+	case CACHE_TYPE_DATA:
 		return sprintf(buf, "Data\n");
-		break;
-	    case CACHE_TYPE_INST:
+	case CACHE_TYPE_INST:
 		return sprintf(buf, "Instruction\n");
-		break;
-	    case CACHE_TYPE_UNIFIED:
+	case CACHE_TYPE_UNIFIED:
 		return sprintf(buf, "Unified\n");
-		break;
-	    default:
+	default:
 		return sprintf(buf, "Unknown\n");
-		break;
 	}
 }
 
Signature · 1 line
1.6.0.4
Applied
#1 lore raw
Quoted 4 lines · Jiri Slaby
---
 arch/x86/kernel/cpu/intel_cacheinfo.c |   17 +++++++----------
 1 files changed, 7 insertions(+), 10 deletions(-)

applied to tip/x86/cleanups, thanks Jiri!

Ingo