[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: Michael Ellerman <michael@ellerman.id.au> Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
This commit is contained in:
parent
f357b4cc58
commit
463c61928c
@ -188,7 +188,7 @@ static void __init iSeries_Parse_Vpd(u8 *VpdData, int VpdDataLen,
|
||||
{
|
||||
u8 *TagPtr = VpdData;
|
||||
int DataLen = VpdDataLen - 3;
|
||||
u8 PhbId;
|
||||
u8 PhbId = 0xff;
|
||||
|
||||
while ((*TagPtr != VpdEndOfAreaTag) && (DataLen > 0)) {
|
||||
int AreaLen = *(TagPtr + 1) + (*(TagPtr + 2) * 256);
|
||||
|
Loading…
Reference in New Issue
Block a user