Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 245331
b: refs/heads/master
c: bbe9a0a
h: refs/heads/master
i:
  245329: 76d1841
  245327: f592220
v: v3
  • Loading branch information
Steve Wise authored and Roland Dreier committed May 10, 2011
1 parent 3414e7b commit a0a2387
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 30c95c2d495c1c8d4d6a97bb9f4e4eacb91ba1d2
refs/heads/master: bbe9a0a2bc07cf30c5b89b51154f2c87200a5dfd
6 changes: 3 additions & 3 deletions trunk/drivers/infiniband/hw/cxgb4/device.c
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ static struct c4iw_dev *c4iw_alloc(const struct cxgb4_lld_info *infop)
devp = (struct c4iw_dev *)ib_alloc_device(sizeof(*devp));
if (!devp) {
printk(KERN_ERR MOD "Cannot allocate ib device\n");
return NULL;
return ERR_PTR(-ENOMEM);
}
devp->rdev.lldi = *infop;

Expand All @@ -414,7 +414,7 @@ static struct c4iw_dev *c4iw_alloc(const struct cxgb4_lld_info *infop)
mutex_unlock(&dev_mutex);
printk(KERN_ERR MOD "Unable to open CXIO rdev err %d\n", ret);
ib_dealloc_device(&devp->ibdev);
return NULL;
return ERR_PTR(ret);
}

idr_init(&devp->cqidr);
Expand Down Expand Up @@ -444,7 +444,7 @@ static void *c4iw_uld_add(const struct cxgb4_lld_info *infop)
DRV_VERSION);

dev = c4iw_alloc(infop);
if (!dev)
if (IS_ERR(dev))
goto out;

PDBG("%s found device %s nchan %u nrxq %u ntxq %u nports %u\n",
Expand Down

0 comments on commit a0a2387

Please sign in to comment.