summaryrefslogtreecommitdiff
path: root/drivers/scsi/pmcraid.h
diff options
context:
space:
mode:
authorBart Van Assche <bart.vanassche@wdc.com>2018-02-12 19:58:19 +0300
committerMartin K. Petersen <martin.petersen@oracle.com>2018-02-14 05:49:15 +0300
commited4414cef2ad0ad0afb3d77a6fdde425d7f7ec4d (patch)
treed76cd830f86a373d7f3c23391d04af20725accfd /drivers/scsi/pmcraid.h
parentf5594686f5f06637bea144159dfe147dae3040d2 (diff)
downloadlinux-ed4414cef2ad0ad0afb3d77a6fdde425d7f7ec4d.tar.xz
scsi: pmcraid: Use sgl_alloc_order() and sgl_free_order()
Use the sgl_alloc_order() and sgl_free_order() functions instead of open coding these functions. Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com> Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de> Reviewed-by: Hannes Reinecke <hare@suse.com> Cc: Anil Ravindranath <anil_ravindranath@pmc-sierra.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/pmcraid.h')
-rw-r--r--drivers/scsi/pmcraid.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/pmcraid.h b/drivers/scsi/pmcraid.h
index 44da91712115..754ef30927e2 100644
--- a/drivers/scsi/pmcraid.h
+++ b/drivers/scsi/pmcraid.h
@@ -542,7 +542,7 @@ struct pmcraid_sglist {
u32 order;
u32 num_sg;
u32 num_dma_sg;
- struct scatterlist scatterlist[1];
+ struct scatterlist *scatterlist;
};
/* page D0 inquiry data of focal point resource */