mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-23 04:34:11 +08:00
[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>
This commit is contained in:
parent
1b80e0f91c
commit
d29510a296
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user