From: Akinobu Mita Date: Sat, 29 Jun 2013 08:59:18 +0000 (+0900) Subject: [SCSI] scsi_debug: simplify offset calculation for dif_storep X-Git-Tag: v3.11-rc1~6^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e18d8bea33077d259cc826c6d3fa76d36af61876;p=pandora-kernel.git [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 Acked-by: Douglas Gilbert Acked-by: "Martin K. Petersen" Signed-off-by: James Bottomley --- Reading git-diff-tree failed