diff options
author | Yi Zou <yi.zou@intel.com> | 2010-06-11 16:44:41 -0700 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2010-07-27 12:01:51 -0500 |
commit | 1c4bfe6305215f09f3e80a14a824e4ae45b2c7ed (patch) | |
tree | ae1d6ce1cdf0f23938cef84507d411de1ea9b2d2 /drivers/scsi/libfc/fc_fcp.c | |
parent | be61331d902e63011138723da3f737d34506f797 (diff) | |
download | blackbird-op-linux-1c4bfe6305215f09f3e80a14a824e4ae45b2c7ed.tar.gz blackbird-op-linux-1c4bfe6305215f09f3e80a14a824e4ae45b2c7ed.zip |
[SCSI] libfc: lport state is enum not bit mask
lport state is enum not bit mask.
Signed-off-by: Yi Zou <yi.zou@intel.com>
Signed-off-by: Robert Love <robert.w.love@intel.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi/libfc/fc_fcp.c')
-rw-r--r-- | drivers/scsi/libfc/fc_fcp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/libfc/fc_fcp.c b/drivers/scsi/libfc/fc_fcp.c index ec1f66c4a9d4..8914f1e95b72 100644 --- a/drivers/scsi/libfc/fc_fcp.c +++ b/drivers/scsi/libfc/fc_fcp.c @@ -745,7 +745,7 @@ static void fc_fcp_recv(struct fc_seq *seq, struct fc_frame *fp, void *arg) fh = fc_frame_header_get(fp); r_ctl = fh->fh_r_ctl; - if (!(lport->state & LPORT_ST_READY)) + if (lport->state != LPORT_ST_READY) goto out; if (fc_fcp_lock_pkt(fsp)) goto out; |