summaryrefslogtreecommitdiff
path: root/Platform
diff options
context:
space:
mode:
authorVijayenthiran Subramaniam <vijayenthiran.subramaniam@arm.com>2020-11-27 20:09:01 +0530
committerArd Biesheuvel <ard.biesheuvel@arm.com>2020-11-27 16:01:42 +0100
commit3f71a8fb114ae9ce87281eb30ab0e678f6806b05 (patch)
tree05f5dd650aeeca88ddd05a5e220700510790c408 /Platform
parentf182372f928f587cb757cb1f2821868d8de87a58 (diff)
Platform/ARM/SgiPkg: Fix constant-logical-operand clang error
Fix "use of logical '&&' with constant operand" error when built with clang. Signed-off-by: Vijayenthiran Subramaniam <vijayenthiran.subramaniam@arm.com> Reviewed-by: Ard Biesheuvel <ard.biesheuvel@arm.com>
Diffstat (limited to 'Platform')
-rw-r--r--Platform/ARM/SgiPkg/Drivers/PlatformDxe/VirtioDevices.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Platform/ARM/SgiPkg/Drivers/PlatformDxe/VirtioDevices.c b/Platform/ARM/SgiPkg/Drivers/PlatformDxe/VirtioDevices.c
index 9e5f7e70..5cf8f6a7 100644
--- a/Platform/ARM/SgiPkg/Drivers/PlatformDxe/VirtioDevices.c
+++ b/Platform/ARM/SgiPkg/Drivers/PlatformDxe/VirtioDevices.c
@@ -1,6 +1,6 @@
/** @file
- Copyright (c) 2018, ARM Ltd. All rights reserved.<BR>
+ Copyright (c) 2018-2020, Arm Limited. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
@@ -82,7 +82,7 @@ InitVirtioDevices (
// Install protocol interface for storage device
if ((FeaturePcdGet (PcdVirtioBlkSupported)) &&
- (FixedPcdGet32 (PcdVirtioBlkBaseAddress))) {
+ (FixedPcdGet32 (PcdVirtioBlkBaseAddress) != 0)) {
Status = gBS->InstallProtocolInterface (&mVirtIoBlkController,
&gEfiDevicePathProtocolGuid, EFI_NATIVE_INTERFACE,
&mVirtioBlockDevicePath);
@@ -111,7 +111,7 @@ InitVirtioDevices (
// Install protocol interface for network device
if ((FeaturePcdGet (PcdVirtioNetSupported)) &&
- (FixedPcdGet32 (PcdVirtioNetBaseAddress))) {
+ (FixedPcdGet32 (PcdVirtioNetBaseAddress) != 0)) {
Status = gBS->InstallProtocolInterface (&mVirtIoNetController,
&gEfiDevicePathProtocolGuid, EFI_NATIVE_INTERFACE,
&mVirtioNetDevicePath);