mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-27 07:34:06 +02:00
ArmVirtPkg: adjust whitespace in block scope declarations
I strongly dislike when *small* local variable declaration changes are muddled by whitespace changes. When that happens, a reviewer can choose from two suboptimal options: display the patch with "git show -b", which creates confusion in *other* parts of the patch, or display the patch with just "git show", which then produces an unjustifiedly large hunk for the sequence of declarations. For avoiding that in subsequent patches, adjust some whitespace in this patch in isolation. Functionally this is a no-op; "git show -b" produces empty output. Note that uncrustify is (of course) unhappy with this patch, but that's fine -- this patch is in the middle of a series, and by the end of the series (which is where uncrustify is run in CI) the whitespace is going to be tight. Cc: Ard Biesheuvel <ardb+tianocore@kernel.org> Cc: Gerd Hoffmann <kraxel@redhat.com> Cc: Leif Lindholm <quic_llindhol@quicinc.com> Cc: Sami Mujawar <sami.mujawar@arm.com> Signed-off-by: Laszlo Ersek <lersek@redhat.com> Message-Id: <20231008153912.175941-4-lersek@redhat.com> Acked-by: Ard Biesheuvel <ardb@kernel.org> Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=4577 [lersek@redhat.com: add TianoCore BZ reference]
This commit is contained in:
parent
f078a6fdd4
commit
5fc3c39704
@ -44,15 +44,15 @@ SerialPortInitialize (
|
|||||||
VOID
|
VOID
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
VOID *Hob;
|
VOID *Hob;
|
||||||
RETURN_STATUS Status;
|
RETURN_STATUS Status;
|
||||||
CONST UINT64 *UartBase;
|
CONST UINT64 *UartBase;
|
||||||
UINTN SerialBaseAddress;
|
UINTN SerialBaseAddress;
|
||||||
UINT64 BaudRate;
|
UINT64 BaudRate;
|
||||||
UINT32 ReceiveFifoDepth;
|
UINT32 ReceiveFifoDepth;
|
||||||
EFI_PARITY_TYPE Parity;
|
EFI_PARITY_TYPE Parity;
|
||||||
UINT8 DataBits;
|
UINT8 DataBits;
|
||||||
EFI_STOP_BITS_TYPE StopBits;
|
EFI_STOP_BITS_TYPE StopBits;
|
||||||
|
|
||||||
if (mSerialBaseAddress != 0) {
|
if (mSerialBaseAddress != 0) {
|
||||||
return RETURN_SUCCESS;
|
return RETURN_SUCCESS;
|
||||||
|
@ -37,25 +37,25 @@ PlatformPeim (
|
|||||||
VOID
|
VOID
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
VOID *Base;
|
VOID *Base;
|
||||||
VOID *NewBase;
|
VOID *NewBase;
|
||||||
UINTN FdtSize;
|
UINTN FdtSize;
|
||||||
UINTN FdtPages;
|
UINTN FdtPages;
|
||||||
UINT64 *FdtHobData;
|
UINT64 *FdtHobData;
|
||||||
UINT64 *UartHobData;
|
UINT64 *UartHobData;
|
||||||
INT32 Node, Prev;
|
INT32 Node, Prev;
|
||||||
INT32 Parent, Depth;
|
INT32 Parent, Depth;
|
||||||
CONST CHAR8 *Compatible;
|
CONST CHAR8 *Compatible;
|
||||||
CONST CHAR8 *CompItem;
|
CONST CHAR8 *CompItem;
|
||||||
CONST CHAR8 *NodeStatus;
|
CONST CHAR8 *NodeStatus;
|
||||||
INT32 Len;
|
INT32 Len;
|
||||||
INT32 RangesLen;
|
INT32 RangesLen;
|
||||||
INT32 StatusLen;
|
INT32 StatusLen;
|
||||||
CONST UINT64 *RegProp;
|
CONST UINT64 *RegProp;
|
||||||
CONST UINT32 *RangesProp;
|
CONST UINT32 *RangesProp;
|
||||||
UINT64 UartBase;
|
UINT64 UartBase;
|
||||||
UINT64 TpmBase;
|
UINT64 TpmBase;
|
||||||
EFI_STATUS Status;
|
EFI_STATUS Status;
|
||||||
|
|
||||||
Base = (VOID *)(UINTN)PcdGet64 (PcdDeviceTreeInitialBaseAddress);
|
Base = (VOID *)(UINTN)PcdGet64 (PcdDeviceTreeInitialBaseAddress);
|
||||||
ASSERT (Base != NULL);
|
ASSERT (Base != NULL);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user