dect
/
linux-2.6
Archived
13
0
Fork 0

[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:
Michael Ellerman 2006-07-13 17:54:44 +10:00 committed by Stephen Rothwell
parent f357b4cc58
commit 463c61928c
1 changed files with 1 additions and 1 deletions

View File

@ -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);