projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a3babda
)
[SCSI] lpfc: unify two if branches with the same code in lpfc_decode_firmware_rev()
author
Roel Kluin
<roel.kluin@gmail.com>
Sun, 17 Jan 2010 15:15:57 +0000
(16:15 +0100)
committer
James Bottomley
<James.Bottomley@suse.de>
Tue, 9 Feb 2010 00:28:38 +0000
(18:28 -0600)
Regardless of the flag state, the branches execute the same code
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Acked-by: James Smart <james.smart@emulex.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/lpfc/lpfc_ct.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/scsi/lpfc/lpfc_ct.c
b/drivers/scsi/lpfc/lpfc_ct.c
index 0ebcd9baca79455e47fecc64f22b577064d7204c..bf7bf62e81ebf5267e1f241e78398a3e69d1067f 100644
(file)
--- a/
drivers/scsi/lpfc/lpfc_ct.c
+++ b/
drivers/scsi/lpfc/lpfc_ct.c
@@
-1843,12
+1843,7
@@
lpfc_decode_firmware_rev(struct lpfc_hba *phba, char *fwrevision, int flag)
c = (rev & 0x0000ff00) >> 8;
b4 = (rev & 0x000000ff);
- if (flag)
- sprintf(fwrevision, "%d.%d%d%c%d ", b1,
- b2, b3, c, b4);
- else
- sprintf(fwrevision, "%d.%d%d%c%d ", b1,
- b2, b3, c, b4);
+ sprintf(fwrevision, "%d.%d%d%c%d", b1, b2, b3, c, b4);
}
return;
}