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@xxxxxxx> --- 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