From ec836491e4a07ae4859fa4f6d49d165e59735dd4 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Thu, 29 Oct 2009 19:42:53 +0000 Subject: [PATCH] Should have been included in the previous commit. git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1303 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- srpt/src/ib_srpt.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/srpt/src/ib_srpt.c b/srpt/src/ib_srpt.c index 2f5b8054b..7b2db32f9 100644 --- a/srpt/src/ib_srpt.c +++ b/srpt/src/ib_srpt.c @@ -617,8 +617,6 @@ static struct srpt_ioctx *srpt_alloc_ioctx(struct srpt_device *sdev) { struct srpt_ioctx *ioctx; - TRACE_ENTRY(); - ioctx = kmalloc(sizeof *ioctx, GFP_KERNEL); if (!ioctx) goto out; @@ -632,8 +630,6 @@ static struct srpt_ioctx *srpt_alloc_ioctx(struct srpt_device *sdev) if (ib_dma_mapping_error(sdev->device, ioctx->dma)) goto out_free_buf; - TRACE_EXIT_RES(ioctx); - return ioctx; out_free_buf: @@ -641,7 +637,6 @@ out_free_buf: out_free_ioctx: kfree(ioctx); out: - TRACE_EXIT_RES(NULL); return NULL; } @@ -2896,7 +2891,7 @@ static void srpt_add_one(struct ib_device *device) scst_tgt_set_tgt_priv(sdev->scst_tgt, sdev); WARN_ON(sdev->device->phys_port_cnt - >= sizeof(sdev->port)/sizeof(sdev->port[0])); + > sizeof(sdev->port)/sizeof(sdev->port[0])); for (i = 1; i <= sdev->device->phys_port_cnt; i++) { sport = &sdev->port[i - 1];