提交 6b20da4d 编写于 作者: J Jiri Pirko 提交者: 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: NOr Gerlitz <gerlitz.or@gmail.com>
Signed-off-by: NJiri Pirko <jiri@mellanox.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 ead87637
......@@ -215,7 +215,7 @@ static void mlxsw_hwmon_attr_add(struct mlxsw_hwmon *mlxsw_hwmon,
"pwm%u", num + 1);
break;
default:
BUG();
WARN_ON(1);
}
mlxsw_hwmon_attr->type_index = type_index;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册