Commit 6b20da4d authored by Jiri Pirko's avatar Jiri Pirko Committed by David S. Miller

mlxsw: core: Change BUG to WARN in hwmon code

Better to just warn the user that something really odd is going on and
continue to run.
Suggested-by: default avatarOr Gerlitz <gerlitz.or@gmail.com>
Signed-off-by: default avatarJiri Pirko <jiri@mellanox.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent ead87637
...@@ -215,7 +215,7 @@ static void mlxsw_hwmon_attr_add(struct mlxsw_hwmon *mlxsw_hwmon, ...@@ -215,7 +215,7 @@ static void mlxsw_hwmon_attr_add(struct mlxsw_hwmon *mlxsw_hwmon,
"pwm%u", num + 1); "pwm%u", num + 1);
break; break;
default: default:
BUG(); WARN_ON(1);
} }
mlxsw_hwmon_attr->type_index = type_index; mlxsw_hwmon_attr->type_index = type_index;
......
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