projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1b80e0f
)
[SCSI] libfc: Remove extra pointer check
author
Robert Love
<robert.w.love@intel.com>
Fri, 7 May 2010 22:18:30 +0000
(15:18 -0700)
committer
James Bottomley
<James.Bottomley@suse.de>
Mon, 17 May 2010 02:22:30 +0000
(22:22 -0400)
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>
drivers/scsi/fcoe/libfcoe.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/scsi/fcoe/libfcoe.c
b/drivers/scsi/fcoe/libfcoe.c
index aadd24962e929c5dbb2627080f888a47b2727df4..ec4c88c2d131244a8d38dc9abac0db71d49be611 100644
(file)
--- 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;