aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/lpfc
diff options
context:
space:
mode:
authorRoel Kluin <roel.kluin@gmail.com>2010-01-17 16:15:57 +0100
committerJames Bottomley <James.Bottomley@suse.de>2010-02-08 18:28:38 -0600
commitd44a6d2bbffd9e5c87f0a78cbe9c089e21289162 (patch)
tree2b1232ad21ed254dfad9295c210bf2c925933583 /drivers/scsi/lpfc
parent[SCSI] be2iscsi: Fix to allow driver to load when the FW allows more cids (diff)
downloadlinux-dev-d44a6d2bbffd9e5c87f0a78cbe9c089e21289162.tar.xz
linux-dev-d44a6d2bbffd9e5c87f0a78cbe9c089e21289162.zip
[SCSI] lpfc: unify two if branches with the same code in lpfc_decode_firmware_rev()
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>
Diffstat (limited to 'drivers/scsi/lpfc')
-rw-r--r--drivers/scsi/lpfc/lpfc_ct.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/scsi/lpfc/lpfc_ct.c b/drivers/scsi/lpfc/lpfc_ct.c
index 0ebcd9baca79..bf7bf62e81eb 100644
--- 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;
}