From: Roel Kluin Date: Sun, 17 Jan 2010 15:15:57 +0000 (+0100) Subject: [SCSI] lpfc: unify two if branches with the same code in lpfc_decode_firmware_rev() X-Git-Tag: upstream/snapshot3+hdmi~15587^2~107 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d44a6d2bbffd9e5c87f0a78cbe9c089e21289162;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git [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 Acked-by: James Smart Signed-off-by: James Bottomley --- diff --git a/drivers/scsi/lpfc/lpfc_ct.c b/drivers/scsi/lpfc/lpfc_ct.c index 0ebcd9b..bf7bf62 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; }