diff options
author | Michael Brown | 2009-08-09 16:20:46 +0200 |
---|---|---|
committer | Michael Brown | 2009-08-10 20:29:40 +0200 |
commit | 976f12c50120637410f30c17f8fbfcd5a49ed8fd (patch) | |
tree | 5eb97a35b019f02defae361a6611deffc3413b76 /src/net | |
parent | [process] Make it safe to call process_add() multiple times (diff) | |
download | ipxe-976f12c50120637410f30c17f8fbfcd5a49ed8fd.tar.gz ipxe-976f12c50120637410f30c17f8fbfcd5a49ed8fd.tar.xz ipxe-976f12c50120637410f30c17f8fbfcd5a49ed8fd.zip |
[scsi] Generalise iscsi_detached_command() to scsi_detached_command()
Diffstat (limited to 'src/net')
-rw-r--r-- | src/net/tcp/iscsi.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/net/tcp/iscsi.c b/src/net/tcp/iscsi.c index 0f7b0de5..973718e0 100644 --- a/src/net/tcp/iscsi.c +++ b/src/net/tcp/iscsi.c @@ -1571,11 +1571,6 @@ static int iscsi_command ( struct scsi_device *scsi, return 0; } -static int iscsi_detached_command ( struct scsi_device *scsi __unused, - struct scsi_command *command __unused ) { - return -ENODEV; -} - /** * Shut down iSCSI interface * @@ -1588,7 +1583,7 @@ void iscsi_detach ( struct scsi_device *scsi ) { xfer_nullify ( &iscsi->socket ); iscsi_close_connection ( iscsi, 0 ); process_del ( &iscsi->process ); - scsi->command = iscsi_detached_command; + scsi->command = scsi_detached_command; ref_put ( scsi->backend ); scsi->backend = NULL; } |