diff options
author | Akinobu Mita <akinobu.mita@gmail.com> | 2013-06-29 10:59:18 +0200 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2013-07-09 10:25:35 +0200 |
commit | e18d8bea33077d259cc826c6d3fa76d36af61876 (patch) | |
tree | 6857a4ca1f8f3a0b9cd8054f7c3d976115bf8c49 /drivers/scsi/ultrastor.c | |
parent | [SCSI] scsi_debug: invalidate protection info for unmapped region (diff) | |
download | linux-e18d8bea33077d259cc826c6d3fa76d36af61876.tar.xz linux-e18d8bea33077d259cc826c6d3fa76d36af61876.zip |
[SCSI] scsi_debug: simplify offset calculation for dif_storep
dif_storep is declared as pointer to unsigned char type. But it is
actually used to store vmalloced array of struct sd_dif_tuple.
This changes the type of dif_storep to the pointer to struct sd_dif_tuple.
It simplifies offset calculation for dif_storep and enables to remove
hardcoded size of struct sd_dif_tuple.
Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Acked-by: Douglas Gilbert <dgilbert@interlog.com>
Acked-by: "Martin K. Petersen" <martin.petersen@oracle.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/ultrastor.c')
0 files changed, 0 insertions, 0 deletions