Commit 463c6192 authored by Michael Ellerman's avatar Michael Ellerman Committed by Stephen Rothwell

[POWERPC] iseries: Fix a compiler warning in platforms/iseries/vpdinfo.c

PhbId might be used unitialised, so set it to 0xff (nothing) always.
Signed-off-by: default avatarMichael Ellerman <michael@ellerman.id.au>
Signed-off-by: default avatarStephen Rothwell <sfr@canb.auug.org.au>
parent f357b4cc
...@@ -188,7 +188,7 @@ static void __init iSeries_Parse_Vpd(u8 *VpdData, int VpdDataLen, ...@@ -188,7 +188,7 @@ static void __init iSeries_Parse_Vpd(u8 *VpdData, int VpdDataLen,
{ {
u8 *TagPtr = VpdData; u8 *TagPtr = VpdData;
int DataLen = VpdDataLen - 3; int DataLen = VpdDataLen - 3;
u8 PhbId; u8 PhbId = 0xff;
while ((*TagPtr != VpdEndOfAreaTag) && (DataLen > 0)) { while ((*TagPtr != VpdEndOfAreaTag) && (DataLen > 0)) {
int AreaLen = *(TagPtr + 1) + (*(TagPtr + 2) * 256); int AreaLen = *(TagPtr + 1) + (*(TagPtr + 2) * 256);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment