Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

scsi: qla2xxx: Remove set but not used variable 'ptr_dma'

Fixes gcc '-Wunused-but-set-variable' warning:

drivers/scsi/qla2xxx/qla_iocb.c: In function 'qla24xx_els_dcmd2_iocb':
drivers/scsi/qla2xxx/qla_iocb.c:2644:13: warning:
variable 'ptr_dma' set but not used [-Wunused-but-set-variable]

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Acked-by: Himanshu Madhani <himanshu.madhani@cavium.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>

authored by

YueHaibing and committed by
Martin K. Petersen
2b08adff a63eba9e

-2
-2
drivers/scsi/qla2xxx/qla_iocb.c
··· 2641 2641 struct qla_hw_data *ha = vha->hw; 2642 2642 int rval = QLA_SUCCESS; 2643 2643 void *ptr, *resp_ptr; 2644 - dma_addr_t ptr_dma; 2645 2644 2646 2645 /* Alloc SRB structure */ 2647 2646 sp = qla2x00_get_sp(vha, fcport, GFP_KERNEL); ··· 2672 2673 ptr = elsio->u.els_plogi.els_plogi_pyld = 2673 2674 dma_alloc_coherent(&ha->pdev->dev, DMA_POOL_SIZE, 2674 2675 &elsio->u.els_plogi.els_plogi_pyld_dma, GFP_KERNEL); 2675 - ptr_dma = elsio->u.els_plogi.els_plogi_pyld_dma; 2676 2676 2677 2677 if (!elsio->u.els_plogi.els_plogi_pyld) { 2678 2678 rval = QLA_FUNCTION_FAILED;