Skip to content

Commit

Permalink
mlxsw: core: Change BUG to WARN in hwmon code
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jiri Pirko authored and David S. Miller committed Dec 3, 2015
1 parent ead8763 commit 6b20da4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/mellanox/mlxsw/core_hwmon.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 6b20da4

Please sign in to comment.