[lm-sensors] [PATCH] x86/hwmon: cosmetic cleanup for coretemp

Jan Beulich JBeulich at novell.com
Mon Sep 13 12:28:35 CEST 2010


"break" after "return" is at best bogus (good compilers even warn about
the "break" being unreachable).

Signed-off-by: Jan Beulich <jbeulich at novell.com>
Cc: Rudolf Marek <r.marek at assembler.cz>

---
 drivers/hwmon/coretemp.c |    2 --
 1 file changed, 2 deletions(-)

--- linux-2.6.36-rc4/drivers/hwmon/coretemp.c	2010-09-13 08:45:02.000000000 +0200
+++ 2.6.36-rc4-x86-coretemp-cosmetic/drivers/hwmon/coretemp.c	2010-09-03 17:54:14.000000000 +0200
@@ -279,11 +279,9 @@ static int __devinit get_tjmax(struct cp
 	case 0x1a:
 		dev_warn(dev, "TjMax is assumed as 100 C!\n");
 		return 100000;
-		break;
 	case 0x17:
 	case 0x1c:		/* Atom CPUs */
 		return adjust_tjmax(c, id, dev);
-		break;
 	default:
 		dev_warn(dev, "CPU (model=0x%x) is not supported yet,"
 			" using default TjMax of 100C.\n", c->x86_model);







More information about the lm-sensors mailing list