Eliminate useless warning message when reading sysctl node in mlx4core.
MFC after: 1 week Sponsored by: Mellanox Technologies
This commit is contained in:
parent
6f490688f5
commit
c29a65e6ec
@ -1236,9 +1236,6 @@ static ssize_t show_port_ib_mtu(struct device *dev,
|
||||
port_mtu_attr);
|
||||
struct mlx4_dev *mdev = info->dev;
|
||||
|
||||
if (mdev->caps.port_type[info->port] == MLX4_PORT_TYPE_ETH)
|
||||
mlx4_warn(mdev, "port level mtu is only used for IB ports\n");
|
||||
|
||||
sprintf(buf, "%d\n",
|
||||
ibta_mtu_to_int(mdev->caps.port_ib_mtu[info->port]));
|
||||
return strlen(buf);
|
||||
|
Loading…
Reference in New Issue
Block a user