Skip to content

Commit

Permalink
[POWERPC] iseries: Fix a compiler warning in platforms/iseries/vpdinfo.c
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Michael Ellerman authored and Stephen Rothwell committed Jul 13, 2006
1 parent f357b4c commit 463c619
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/powerpc/platforms/iseries/vpdinfo.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 463c619

Please sign in to comment.