summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/libfc/fc_fcp.c
diff options
context:
space:
mode:
authorYi Zou <yi.zou@intel.com>2010-06-11 16:44:41 -0700
committerJames Bottomley <James.Bottomley@suse.de>2010-07-27 12:01:51 -0500
commit1c4bfe6305215f09f3e80a14a824e4ae45b2c7ed (patch)
treeae1d6ce1cdf0f23938cef84507d411de1ea9b2d2 /drivers/scsi/libfc/fc_fcp.c
parentbe61331d902e63011138723da3f737d34506f797 (diff)
downloadblackbird-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.c2
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;
OpenPOWER on IntegriCloud