summaryrefslogtreecommitdiffstats
path: root/drivers/scsi
diff options
context:
space:
mode:
authorRobert Love <robert.w.love@intel.com>2010-05-07 15:18:30 -0700
committerJames Bottomley <James.Bottomley@suse.de>2010-05-16 22:22:30 -0400
commitd29510a2968f87eaf455c606cd8802b6f8a0774b (patch)
tree76cebf287eb388597b978ef041ab03a9553377ea /drivers/scsi
parent1b80e0f91c41db4633c0a61f727de169a9e9b275 (diff)
downloadblackbird-op-linux-d29510a2968f87eaf455c606cd8802b6f8a0774b.tar.gz
blackbird-op-linux-d29510a2968f87eaf455c606cd8802b6f8a0774b.zip
[SCSI] libfc: Remove extra pointer check
The fcf pointer is checked again after this verification making the first check redundant. Remote the first check. 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/fcoe/libfcoe.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/scsi/fcoe/libfcoe.c b/drivers/scsi/fcoe/libfcoe.c
index aadd24962e92..ec4c88c2d131 100644
--- a/drivers/scsi/fcoe/libfcoe.c
+++ b/drivers/scsi/fcoe/libfcoe.c
@@ -948,8 +948,7 @@ static void fcoe_ctlr_recv_clr_vlink(struct fcoe_ctlr *fip,
u32 desc_mask;
LIBFCOE_FIP_DBG(fip, "Clear Virtual Link received\n");
- if (!fcf)
- return;
+
if (!fcf || !fc_host_port_id(lport->host))
return;
OpenPOWER on IntegriCloud