Skip to content

Commit

Permalink
Hardware: Cast GPE EnableMask before storing
Browse files Browse the repository at this point in the history
In function AcpiHwLowSetGpe(), cast EnableMask to UINT8 before
storing. The mask was read from a 32 bit register but is an 8 bit
value. Fixes Visual Studio compiler warning.

Signed-off-by: David E. Box <david.e.box@linux.intel.com>
  • Loading branch information
debox1 committed Feb 4, 2015
1 parent 8e21180 commit 490ec7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/components/hardware/hwgpe.c
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ AcpiHwLowSetGpe (
Status = AcpiHwWrite (EnableMask, &GpeRegisterInfo->EnableAddress);
if (ACPI_SUCCESS (Status) && (Action & ACPI_GPE_SAVE_MASK))
{
GpeRegisterInfo->EnableMask = EnableMask;
GpeRegisterInfo->EnableMask = (UINT8) EnableMask;
}
return (Status);
}
Expand Down

0 comments on commit 490ec7f

Please sign in to comment.