diff options
author | Joe Eykholt <jeykholt@cisco.com> | 2009-07-30 00:04:22 (GMT) |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2009-08-22 22:52:04 (GMT) |
commit | b1d9fd5574763abe5c763e32e3547a4adee9bd88 (patch) | |
tree | fbf80ee698c4f9c9ffa8dc054d5c84df2459076f /drivers/scsi/libfc/fc_exch.c | |
parent | f161fb72104c7addac3d404a1ff543b2491c1426 (diff) | |
download | linux-b1d9fd5574763abe5c763e32e3547a4adee9bd88.tar.xz |
[SCSI] libfc: rename lport NONE state to DISABLED
The state NONE was meant to be invalid, but has been used as
the initial state. Rename it to be DISABLED, as more descriptive.
Further patches will make it the like the RESET state, except
it won't transition to FLOGI until fc_lport_fabric_login() is called.
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 'drivers/scsi/libfc/fc_exch.c')
-rw-r--r-- | drivers/scsi/libfc/fc_exch.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/libfc/fc_exch.c b/drivers/scsi/libfc/fc_exch.c index 145ab9b..e6d82d7 100644 --- a/drivers/scsi/libfc/fc_exch.c +++ b/drivers/scsi/libfc/fc_exch.c @@ -1875,7 +1875,7 @@ void fc_exch_recv(struct fc_lport *lp, struct fc_exch_mgr *mp, u32 f_ctl; /* lport lock ? */ - if (!lp || !mp || (lp->state == LPORT_ST_NONE)) { + if (!lp || !mp || lp->state == LPORT_ST_DISABLED) { FC_LPORT_DBG(lp, "Receiving frames for an lport that " "has not been initialized correctly\n"); fc_frame_free(fp); |