linux-scsi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] scsi: aic94xx: remove unnecessary assertion
@ 2019-12-17 20:19 Aditya Pakki
  0 siblings, 0 replies; only message in thread
From: Aditya Pakki @ 2019-12-17 20:19 UTC (permalink / raw)
  To: pakki001
  Cc: kjlu, James E.J. Bottomley, Martin K. Petersen, Thomas Gleixner,
	Greg Kroah-Hartman, Allison Randal, linux-scsi, linux-kernel

In asd_unbuild_smp_ascb, the task is never NULL when called from
asd_execute_task and asd_task_tasklet_complete. The BUG_ON assertion
is thus unnecessary and can be removed.

Signed-off-by: Aditya Pakki <pakki001@umn.edu>
---
 drivers/scsi/aic94xx/aic94xx_task.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/scsi/aic94xx/aic94xx_task.c b/drivers/scsi/aic94xx/aic94xx_task.c
index f923ed019d4a..6aa75777fff1 100644
--- a/drivers/scsi/aic94xx/aic94xx_task.c
+++ b/drivers/scsi/aic94xx/aic94xx_task.c
@@ -452,7 +452,6 @@ static void asd_unbuild_smp_ascb(struct asd_ascb *a)
 {
 	struct sas_task *task = a->uldd_task;
 
-	BUG_ON(!task);
 	dma_unmap_sg(&a->ha->pcidev->dev, &task->smp_task.smp_req, 1,
 		     DMA_TO_DEVICE);
 	dma_unmap_sg(&a->ha->pcidev->dev, &task->smp_task.smp_resp, 1,
-- 
2.20.1


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2019-12-17 20:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-17 20:19 [PATCH] scsi: aic94xx: remove unnecessary assertion Aditya Pakki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).