Commit 17a52100 authored by Sachin Kamat's avatar Sachin Kamat Committed by Guenter Roeck

hwmon: (amc6821) Remove redundant break

'break' after return or goto has no effect. Remove it.
Signed-off-by: default avatarSachin Kamat <sachin.kamat@linaro.org>
Cc: T. Mertelj <tomaz.mertelj@guest.arnes.si>
Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent 3499e5b2
...@@ -416,11 +416,9 @@ static ssize_t get_temp_auto_point_temp( ...@@ -416,11 +416,9 @@ static ssize_t get_temp_auto_point_temp(
case 1: case 1:
return sprintf(buf, "%d\n", return sprintf(buf, "%d\n",
data->temp1_auto_point_temp[ix] * 1000); data->temp1_auto_point_temp[ix] * 1000);
break;
case 2: case 2:
return sprintf(buf, "%d\n", return sprintf(buf, "%d\n",
data->temp2_auto_point_temp[ix] * 1000); data->temp2_auto_point_temp[ix] * 1000);
break;
default: default:
dev_dbg(dev, "Unknown attr->nr (%d).\n", nr); dev_dbg(dev, "Unknown attr->nr (%d).\n", nr);
return -EINVAL; return -EINVAL;
...@@ -513,7 +511,6 @@ static ssize_t set_temp_auto_point_temp( ...@@ -513,7 +511,6 @@ static ssize_t set_temp_auto_point_temp(
count = -EIO; count = -EIO;
} }
goto EXIT; goto EXIT;
break;
case 1: case 1:
ptemp[1] = clamp_val(val / 1000, (ptemp[0] & 0x7C) + 4, 124); ptemp[1] = clamp_val(val / 1000, (ptemp[0] & 0x7C) + 4, 124);
ptemp[1] &= 0x7C; ptemp[1] &= 0x7C;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment