From: Robert Love Date: Fri, 7 May 2010 22:18:30 +0000 (-0700) Subject: [SCSI] libfc: Remove extra pointer check X-Git-Tag: v2.6.35-rc1~470^2^2~11 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=d29510a2968f87eaf455c606cd8802b6f8a0774b;p=karo-tx-linux.git [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 Signed-off-by: James Bottomley --- 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;