diff options
author | Jiri Pirko <jiri@mellanox.com> | 2015-12-03 10:12:03 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-12-03 15:26:39 -0500 |
commit | 6b20da4d8f3f6a3be9f67e3207f435cfaa5f7f97 (patch) | |
tree | dad2ba94379ff709f5357f5b6be319d6ed086e4d /drivers/net | |
parent | ead87637a9e47f6ce17e4bc9e4c99472f10d72b2 (diff) |
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: Or Gerlitz <gerlitz.or@gmail.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlxsw/core_hwmon.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/mellanox/mlxsw/core_hwmon.c b/drivers/net/ethernet/mellanox/mlxsw/core_hwmon.c index ad8b27418a7f..4dad146b41ae 100644 --- a/drivers/net/ethernet/mellanox/mlxsw/core_hwmon.c +++ b/drivers/net/ethernet/mellanox/mlxsw/core_hwmon.c @@ -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; |