From: Sachin Kamat Date: Wed, 11 Sep 2013 04:19:51 +0000 (+0530) Subject: hwmon: (amc6821) Remove redundant break X-Git-Tag: upstream/snapshot3+hdmi~4304^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=17a52100b03864b5e58fb45ec6b42d4fd81c4808;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git hwmon: (amc6821) Remove redundant break 'break' after return or goto has no effect. Remove it. Signed-off-by: Sachin Kamat Cc: T. Mertelj Signed-off-by: Guenter Roeck --- diff --git a/drivers/hwmon/amc6821.c b/drivers/hwmon/amc6821.c index fcb1853..eea8172 100644 --- a/drivers/hwmon/amc6821.c +++ b/drivers/hwmon/amc6821.c @@ -416,11 +416,9 @@ static ssize_t get_temp_auto_point_temp( case 1: return sprintf(buf, "%d\n", data->temp1_auto_point_temp[ix] * 1000); - break; case 2: return sprintf(buf, "%d\n", data->temp2_auto_point_temp[ix] * 1000); - break; default: dev_dbg(dev, "Unknown attr->nr (%d).\n", nr); return -EINVAL; @@ -513,7 +511,6 @@ static ssize_t set_temp_auto_point_temp( count = -EIO; } goto EXIT; - break; case 1: ptemp[1] = clamp_val(val / 1000, (ptemp[0] & 0x7C) + 4, 124); ptemp[1] &= 0x7C;