Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d29510a2 authored by Robert Love's avatar Robert Love Committed by James Bottomley
Browse files

[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: default avatarRobert Love <robert.w.love@intel.com>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@suse.de>
parent 1b80e0f9
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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;