Skip to content

Commit

Permalink
[SCSI] libfc: Remove extra pointer check
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Robert Love authored and James Bottomley committed May 17, 2010
1 parent 1b80e0f commit d29510a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/scsi/fcoe/libfcoe.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit d29510a

Please sign in to comment.