From 7efac456a3a6d4d7c8b5191851be32f77dc2084a Mon Sep 17 00:00:00 2001 From: Vladislav Bolkhovitin Date: Mon, 27 Aug 2012 21:51:10 +0000 Subject: [PATCH] qla2x00t: Remove a superfluous cast Signed-off-by: Bart Van Assche git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4487 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- qla2x00t/qla2x00-target/qla2x00t.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qla2x00t/qla2x00-target/qla2x00t.c b/qla2x00t/qla2x00-target/qla2x00t.c index a44e8c36b..c76acc362 100644 --- a/qla2x00t/qla2x00-target/qla2x00t.c +++ b/qla2x00t/qla2x00-target/qla2x00t.c @@ -2025,7 +2025,7 @@ static int q2t_pci_map_calc_cnt(struct q2t_prm *prm) sBUG_ON(prm->cmd->sg_cnt == 0); - prm->sg = (struct scatterlist *)prm->cmd->sg; + prm->sg = prm->cmd->sg; prm->seg_cnt = pci_map_sg(prm->tgt->ha->pdev, prm->cmd->sg, prm->cmd->sg_cnt, prm->cmd->dma_data_direction); if (unlikely(prm->seg_cnt == 0))