Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d44a6d2b authored by Roel Kluin's avatar Roel Kluin Committed by James Bottomley
Browse files

[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: default avatarRoel Kluin <roel.kluin@gmail.com>
Acked-by: default avatarJames Smart <james.smart@emulex.com>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@suse.de>
parent a3babda5
Loading
Loading
Loading
Loading
+1 −6
Original line number Original line Diff line number Diff line
@@ -1843,12 +1843,7 @@ lpfc_decode_firmware_rev(struct lpfc_hba *phba, char *fwrevision, int flag)
		c  = (rev & 0x0000ff00) >> 8;
		c  = (rev & 0x0000ff00) >> 8;
		b4 = (rev & 0x000000ff);
		b4 = (rev & 0x000000ff);


		if (flag)
		sprintf(fwrevision, "%d.%d%d%c%d", b1, b2, b3, c, b4);
			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);
	}
	}
	return;
	return;
}
}