Commit 7ab0490d authored by Christoph Hellwig's avatar Christoph Hellwig Committed by James Bottomley

[PATCH] kill last users of the ScsiLun typedef

everyone else uses struct scsi_lun already.
parent 01d73de0
...@@ -861,7 +861,7 @@ static int resp_report_luns(unsigned char * cmd, unsigned char * buff, ...@@ -861,7 +861,7 @@ static int resp_report_luns(unsigned char * cmd, unsigned char * buff,
unsigned int alloc_len; unsigned int alloc_len;
int lun_cnt, i, upper; int lun_cnt, i, upper;
int select_report = (int)cmd[2]; int select_report = (int)cmd[2];
ScsiLun *one_lun; struct scsi_lun *one_lun;
alloc_len = cmd[9] + (cmd[8] << 8) + (cmd[7] << 16) + (cmd[6] << 24); alloc_len = cmd[9] + (cmd[8] << 8) + (cmd[7] << 16) + (cmd[6] << 24);
if ((alloc_len < 16) || (select_report > 2)) { if ((alloc_len < 16) || (select_report > 2)) {
...@@ -873,11 +873,11 @@ static int resp_report_luns(unsigned char * cmd, unsigned char * buff, ...@@ -873,11 +873,11 @@ static int resp_report_luns(unsigned char * cmd, unsigned char * buff,
(lun 0 to lun 16383) */ (lun 0 to lun 16383) */
memset(buff, 0, bufflen); memset(buff, 0, bufflen);
lun_cnt = scsi_debug_max_luns; lun_cnt = scsi_debug_max_luns;
buff[2] = ((sizeof(ScsiLun) * lun_cnt) >> 8) & 0xff; buff[2] = ((sizeof(struct scsi_lun) * lun_cnt) >> 8) & 0xff;
buff[3] = (sizeof(ScsiLun) * lun_cnt) & 0xff; buff[3] = (sizeof(struct scsi_lun) * lun_cnt) & 0xff;
lun_cnt = min((int)((bufflen - 8) / sizeof(ScsiLun)), lun_cnt = min((int)((bufflen - 8) / sizeof(struct scsi_lun)),
lun_cnt); lun_cnt);
one_lun = (ScsiLun*) &buff[8]; one_lun = (struct scsi_lun *) &buff[8];
for (i = 0; i < lun_cnt; i++) { for (i = 0; i < lun_cnt; i++) {
upper = (i >> 8) & 0x3f; upper = (i >> 8) & 0x3f;
if (upper) if (upper)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment