GCC 4.8 in RELEASE mode complains about GetPciIoTranslation () potentially
not assigning IoTranslation, but does not notice that it returns failure in
this case, which means IoTranslation is never referenced *unless* it has
been assigned. So simply set IoTranslation to zero to help the compiler.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
\r
PcdSetBool (PcdPciDisableBusEnumeration, FALSE);\r
\r
+ IoTranslation = 0;\r
RetStatus = GetPciIoTranslation (FdtClient, Node, &IoTranslation);\r
if (!RETURN_ERROR (RetStatus)) {\r
PcdSet64 (PcdPciIoTranslation, IoTranslation);\r