summaryrefslogtreecommitdiff
path: root/drivers/scsi
diff options
context:
space:
mode:
authorYi Zou <yi.zou@intel.com>2010-06-12 03:44:41 +0400
committerJames Bottomley <James.Bottomley@suse.de>2010-07-27 21:01:51 +0400
commit1c4bfe6305215f09f3e80a14a824e4ae45b2c7ed (patch)
treeae1d6ce1cdf0f23938cef84507d411de1ea9b2d2 /drivers/scsi
parentbe61331d902e63011138723da3f737d34506f797 (diff)
downloadlinux-1c4bfe6305215f09f3e80a14a824e4ae45b2c7ed.tar.xz
[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')
-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;