From 8dd2128bb5db2c856b5863cdd146a1eeec440ce4 Mon Sep 17 00:00:00 2001 From: Mark Debbage Date: Mon, 18 Jun 2007 14:24:46 -0700 Subject: [PATCH] --- yaml --- r: 59317 b: refs/heads/master c: bacf4013530e7fc230a8aa0c6ea3c17fc2f47665 h: refs/heads/master i: 59315: 5e3cbfe13bd903e99456593b2e2653f726702cac v: v3 --- [refs] | 2 +- trunk/drivers/infiniband/hw/ipath/ipath_file_ops.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index d1b601631b9f..13d2eba4cb78 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 0df6291c8af2778d05f278d5738eef2c8fafa2dd +refs/heads/master: bacf4013530e7fc230a8aa0c6ea3c17fc2f47665 diff --git a/trunk/drivers/infiniband/hw/ipath/ipath_file_ops.c b/trunk/drivers/infiniband/hw/ipath/ipath_file_ops.c index fc83f40a933f..a47479608f48 100644 --- a/trunk/drivers/infiniband/hw/ipath/ipath_file_ops.c +++ b/trunk/drivers/infiniband/hw/ipath/ipath_file_ops.c @@ -1444,10 +1444,10 @@ static int init_subports(struct ipath_devdata *dd, size_t size; /* - * If the user is requesting zero or one port, + * If the user is requesting zero subports, * skip the subport allocation. */ - if (uinfo->spu_subport_cnt <= 1) + if (uinfo->spu_subport_cnt <= 0) goto bail; /* Self-consistency check for ipath_compatible_subports() */