]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
[POWERPC] iseries: Fix a compiler warning in platforms/iseries/vpdinfo.c
authorMichael Ellerman <michael@ellerman.id.au>
Thu, 13 Jul 2006 07:54:44 +0000 (17:54 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 13 Jul 2006 08:43:12 +0000 (18:43 +1000)
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>
arch/powerpc/platforms/iseries/vpdinfo.c

index ba7f6a62c3bfdaa5ba286eba344af969bbbfca92..9f83878a0c2e429ec7aa6e340156a3a84916367b 100644 (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);