From: Yi Zou Date: Fri, 11 Jun 2010 23:44:41 +0000 (-0700) Subject: [SCSI] libfc: lport state is enum not bit mask X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=1c4bfe6305215f09f3e80a14a824e4ae45b2c7ed;p=linux-beck.git [SCSI] libfc: lport state is enum not bit mask lport state is enum not bit mask. Signed-off-by: Yi Zou Signed-off-by: Robert Love Signed-off-by: James Bottomley --- 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;