[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>
This commit is contained in:
committed by
James Bottomley
parent
84b05445b9
commit
141940548c
@@ -147,13 +147,13 @@ enum fc_disc_event {
|
||||
};
|
||||
|
||||
enum fc_rport_state {
|
||||
RPORT_ST_NONE = 0,
|
||||
RPORT_ST_INIT, /* initialized */
|
||||
RPORT_ST_PLOGI, /* waiting for PLOGI completion */
|
||||
RPORT_ST_PRLI, /* waiting for PRLI completion */
|
||||
RPORT_ST_RTV, /* waiting for RTV completion */
|
||||
RPORT_ST_READY, /* ready for use */
|
||||
RPORT_ST_LOGO, /* port logout sent */
|
||||
RPORT_ST_DELETE, /* port being deleted */
|
||||
};
|
||||
|
||||
enum fc_rport_trans_state {
|
||||
|
Reference in New Issue
Block a user