aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/infiniband/hw/ipath/ipath_file_ops.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/infiniband/hw/ipath/ipath_file_ops.c b/drivers/infiniband/hw/ipath/ipath_file_ops.c
index fc83f40a933f..a47479608f48 100644
--- a/drivers/infiniband/hw/ipath/ipath_file_ops.c
+++ b/drivers/infiniband/hw/ipath/ipath_file_ops.c
@@ -1444,10 +1444,10 @@ static int init_subports(struct ipath_devdata *dd,
1444 size_t size; 1444 size_t size;
1445 1445
1446 /* 1446 /*
1447 * If the user is requesting zero or one port, 1447 * If the user is requesting zero subports,
1448 * skip the subport allocation. 1448 * skip the subport allocation.
1449 */ 1449 */
1450 if (uinfo->spu_subport_cnt <= 1) 1450 if (uinfo->spu_subport_cnt <= 0)
1451 goto bail; 1451 goto bail;
1452 1452
1453 /* Self-consistency check for ipath_compatible_subports() */ 1453 /* Self-consistency check for ipath_compatible_subports() */