diff options
author | Joe Eykholt <jeykholt@cisco.com> | 2009-07-29 20:04:43 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2009-08-22 18:52:06 -0400 |
commit | 141940548c6919c22bf0573c68fd59d961e22475 (patch) | |
tree | 64ef27e9f0e11df5e64bd5616ed194a02b0eea5c /include/scsi | |
parent | 84b05445b9f0b1ac2192f32260c916426d902d79 (diff) |
[SCSI] libfc: rename rport state "NONE" to "DELETE".
State RPORT_ST_NONE was intented to be an invalid state (0), never used.
This was a misguided attempt to be sure it was always initialized.
Having an extra state meaning nothing requires switch statements to
have a case covering that state.
State NONE has been used instead to mean the remote port is being deleted.
Changing the name to RPORT_ST_DELETE.
Signed-off-by: Joe Eykholt <jeykholt@cisco.com>
Signed-off-by: Robert Love <robert.w.love@intel.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'include/scsi')
-rw-r--r-- | include/scsi/libfc.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/scsi/libfc.h b/include/scsi/libfc.h index b5c9b285b462..04db7a9e631b 100644 --- a/include/scsi/libfc.h +++ b/include/scsi/libfc.h | |||
@@ -147,13 +147,13 @@ enum fc_disc_event { | |||
147 | }; | 147 | }; |
148 | 148 | ||
149 | enum fc_rport_state { | 149 | enum fc_rport_state { |
150 | RPORT_ST_NONE = 0, | ||
151 | RPORT_ST_INIT, /* initialized */ | 150 | RPORT_ST_INIT, /* initialized */ |
152 | RPORT_ST_PLOGI, /* waiting for PLOGI completion */ | 151 | RPORT_ST_PLOGI, /* waiting for PLOGI completion */ |
153 | RPORT_ST_PRLI, /* waiting for PRLI completion */ | 152 | RPORT_ST_PRLI, /* waiting for PRLI completion */ |
154 | RPORT_ST_RTV, /* waiting for RTV completion */ | 153 | RPORT_ST_RTV, /* waiting for RTV completion */ |
155 | RPORT_ST_READY, /* ready for use */ | 154 | RPORT_ST_READY, /* ready for use */ |
156 | RPORT_ST_LOGO, /* port logout sent */ | 155 | RPORT_ST_LOGO, /* port logout sent */ |
156 | RPORT_ST_DELETE, /* port being deleted */ | ||
157 | }; | 157 | }; |
158 | 158 | ||
159 | enum fc_rport_trans_state { | 159 | enum fc_rport_trans_state { |