aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/target/target_core_pscsi.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/target/target_core_pscsi.c')
-rw-r--r--drivers/target/target_core_pscsi.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/target/target_core_pscsi.c b/drivers/target/target_core_pscsi.c
index bb44ed4d0272..b73a399cdd54 100644
--- a/drivers/target/target_core_pscsi.c
+++ b/drivers/target/target_core_pscsi.c
@@ -104,7 +104,7 @@ static void pscsi_detach_hba(struct se_hba *hba)
104 104
105static int pscsi_pmode_enable_hba(struct se_hba *hba, unsigned long mode_flag) 105static int pscsi_pmode_enable_hba(struct se_hba *hba, unsigned long mode_flag)
106{ 106{
107 struct pscsi_hba_virt *phv = (struct pscsi_hba_virt *)hba->hba_ptr; 107 struct pscsi_hba_virt *phv = hba->hba_ptr;
108 struct Scsi_Host *sh = phv->phv_lld_host; 108 struct Scsi_Host *sh = phv->phv_lld_host;
109 /* 109 /*
110 * Release the struct Scsi_Host 110 * Release the struct Scsi_Host
@@ -405,7 +405,7 @@ static struct se_device *pscsi_create_type_disk(
405 __releases(sh->host_lock) 405 __releases(sh->host_lock)
406{ 406{
407 struct se_device *dev; 407 struct se_device *dev;
408 struct pscsi_hba_virt *phv = (struct pscsi_hba_virt *)pdv->pdv_se_hba->hba_ptr; 408 struct pscsi_hba_virt *phv = pdv->pdv_se_hba->hba_ptr;
409 struct Scsi_Host *sh = sd->host; 409 struct Scsi_Host *sh = sd->host;
410 struct block_device *bd; 410 struct block_device *bd;
411 u32 dev_flags = 0; 411 u32 dev_flags = 0;
@@ -453,7 +453,7 @@ static struct se_device *pscsi_create_type_rom(
453 __releases(sh->host_lock) 453 __releases(sh->host_lock)
454{ 454{
455 struct se_device *dev; 455 struct se_device *dev;
456 struct pscsi_hba_virt *phv = (struct pscsi_hba_virt *)pdv->pdv_se_hba->hba_ptr; 456 struct pscsi_hba_virt *phv = pdv->pdv_se_hba->hba_ptr;
457 struct Scsi_Host *sh = sd->host; 457 struct Scsi_Host *sh = sd->host;
458 u32 dev_flags = 0; 458 u32 dev_flags = 0;
459 459
@@ -488,7 +488,7 @@ static struct se_device *pscsi_create_type_other(
488 __releases(sh->host_lock) 488 __releases(sh->host_lock)
489{ 489{
490 struct se_device *dev; 490 struct se_device *dev;
491 struct pscsi_hba_virt *phv = (struct pscsi_hba_virt *)pdv->pdv_se_hba->hba_ptr; 491 struct pscsi_hba_virt *phv = pdv->pdv_se_hba->hba_ptr;
492 struct Scsi_Host *sh = sd->host; 492 struct Scsi_Host *sh = sd->host;
493 u32 dev_flags = 0; 493 u32 dev_flags = 0;
494 494
@@ -509,10 +509,10 @@ static struct se_device *pscsi_create_virtdevice(
509 struct se_subsystem_dev *se_dev, 509 struct se_subsystem_dev *se_dev,
510 void *p) 510 void *p)
511{ 511{
512 struct pscsi_dev_virt *pdv = (struct pscsi_dev_virt *)p; 512 struct pscsi_dev_virt *pdv = p;
513 struct se_device *dev; 513 struct se_device *dev;
514 struct scsi_device *sd; 514 struct scsi_device *sd;
515 struct pscsi_hba_virt *phv = (struct pscsi_hba_virt *)hba->hba_ptr; 515 struct pscsi_hba_virt *phv = hba->hba_ptr;
516 struct Scsi_Host *sh = phv->phv_lld_host; 516 struct Scsi_Host *sh = phv->phv_lld_host;
517 int legacy_mode_enable = 0; 517 int legacy_mode_enable = 0;
518 518
@@ -1143,7 +1143,7 @@ static unsigned char *pscsi_get_sense_buffer(struct se_task *task)
1143{ 1143{
1144 struct pscsi_plugin_task *pt = PSCSI_TASK(task); 1144 struct pscsi_plugin_task *pt = PSCSI_TASK(task);
1145 1145
1146 return (unsigned char *)&pt->pscsi_sense[0]; 1146 return pt->pscsi_sense;
1147} 1147}
1148 1148
1149/* pscsi_get_device_rev(): 1149/* pscsi_get_device_rev():