diff options
author | Bart Van Assche <bart.vanassche@wdc.com> | 2018-02-12 17:58:19 +0100 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2018-02-14 03:49:15 +0100 |
commit | ed4414cef2ad0ad0afb3d77a6fdde425d7f7ec4d (patch) | |
tree | d76cd830f86a373d7f3c23391d04af20725accfd /drivers/scsi/pmcraid.h | |
parent | scsi: pmcraid: Remove an unused structure member (diff) | |
download | linux-ed4414cef2ad0ad0afb3d77a6fdde425d7f7ec4d.tar.xz linux-ed4414cef2ad0ad0afb3d77a6fdde425d7f7ec4d.zip |
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.h | 2 |
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 */ |