diff options
Diffstat (limited to 'drivers/s390/scsi/zfcp_scsi.c')
-rw-r--r-- | drivers/s390/scsi/zfcp_scsi.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/s390/scsi/zfcp_scsi.c b/drivers/s390/scsi/zfcp_scsi.c index ad7eb4a9261c..3a7f3b87fb36 100644 --- a/drivers/s390/scsi/zfcp_scsi.c +++ b/drivers/s390/scsi/zfcp_scsi.c | |||
@@ -189,10 +189,9 @@ static void zfcp_scsi_slave_destroy(struct scsi_device *sdpnt) | |||
189 | unit->device = NULL; | 189 | unit->device = NULL; |
190 | zfcp_erp_unit_failed(unit); | 190 | zfcp_erp_unit_failed(unit); |
191 | zfcp_unit_put(unit); | 191 | zfcp_unit_put(unit); |
192 | } else { | 192 | } else |
193 | ZFCP_LOG_NORMAL("bug: no unit associated with SCSI device at " | 193 | ZFCP_LOG_NORMAL("bug: no unit associated with SCSI device at " |
194 | "address %p\n", sdpnt); | 194 | "address %p\n", sdpnt); |
195 | } | ||
196 | } | 195 | } |
197 | 196 | ||
198 | /* | 197 | /* |
@@ -361,12 +360,11 @@ zfcp_unit_lookup(struct zfcp_adapter *adapter, int channel, unsigned int id, | |||
361 | list_for_each_entry(port, &adapter->port_list_head, list) { | 360 | list_for_each_entry(port, &adapter->port_list_head, list) { |
362 | if (!port->rport || (id != port->rport->scsi_target_id)) | 361 | if (!port->rport || (id != port->rport->scsi_target_id)) |
363 | continue; | 362 | continue; |
364 | list_for_each_entry(unit, &port->unit_list_head, list) { | 363 | list_for_each_entry(unit, &port->unit_list_head, list) |
365 | if (lun == unit->scsi_lun) { | 364 | if (lun == unit->scsi_lun) { |
366 | retval = unit; | 365 | retval = unit; |
367 | goto out; | 366 | goto out; |
368 | } | 367 | } |
369 | } | ||
370 | } | 368 | } |
371 | out: | 369 | out: |
372 | return retval; | 370 | return retval; |