aboutsummaryrefslogtreecommitdiff
path: root/sys/ofed/drivers
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2013-07-08 21:25:12 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2013-07-08 21:25:12 +0000
commit335349690f4c649c2fa99feed40ee2d2f7a088fa (patch)
tree060f342f7e42541239236a5072f1e3bd4fcda99e /sys/ofed/drivers
parentc64bc3a0766369e0bd5ac08a17b27cba6c78a99e (diff)
Notes
Diffstat (limited to 'sys/ofed/drivers')
-rw-r--r--sys/ofed/drivers/net/mlx4/main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/ofed/drivers/net/mlx4/main.c b/sys/ofed/drivers/net/mlx4/main.c
index fe1f4bfc2587..b48dfbd98bf4 100644
--- a/sys/ofed/drivers/net/mlx4/main.c
+++ b/sys/ofed/drivers/net/mlx4/main.c
@@ -479,11 +479,11 @@ static ssize_t set_port_type(struct device *dev,
int i;
int err = 0;
- if (!strcmp(buf, "ib\n"))
+ if (!strcmp(buf, "ib"))
info->tmp_type = MLX4_PORT_TYPE_IB;
- else if (!strcmp(buf, "eth\n"))
+ else if (!strcmp(buf, "eth"))
info->tmp_type = MLX4_PORT_TYPE_ETH;
- else if (!strcmp(buf, "auto\n"))
+ else if (!strcmp(buf, "auto"))
info->tmp_type = MLX4_PORT_TYPE_AUTO;
else {
mlx4_err(mdev, "%s is not supported port type\n", buf);