diff options
author | Bart Van Assche <bart.vanassche@wdc.com> | 2018-02-12 17:58:17 +0100 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2018-02-14 03:49:14 +0100 |
commit | f95dc1bb32d5eb9ff484f7f5a44f856d6fc39f20 (patch) | |
tree | 9827f5b18f2a7bd689513e404d2925c0908255e0 /drivers/scsi/ipr.h | |
parent | scsi: pmcraid: remove redundant initializations of pointer 'ioadl' (diff) | |
download | linux-f95dc1bb32d5eb9ff484f7f5a44f856d6fc39f20.tar.xz linux-f95dc1bb32d5eb9ff484f7f5a44f856d6fc39f20.zip |
scsi: ipr: 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>
Acked-by: Brian King <brking@linux.vnet.ibm.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Cc: Martin K. Petersen <martin.petersen@oracle.com>
Cc: linux-scsi@vger.kernel.org
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/ipr.h')
-rw-r--r-- | drivers/scsi/ipr.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/ipr.h b/drivers/scsi/ipr.h index c7f0e9e3cd7d..93570734cbfb 100644 --- a/drivers/scsi/ipr.h +++ b/drivers/scsi/ipr.h @@ -1454,7 +1454,7 @@ struct ipr_sglist { u32 num_sg; u32 num_dma_sg; u32 buffer_len; - struct scatterlist scatterlist[1]; + struct scatterlist *scatterlist; }; enum ipr_sdt_state { |