From 39cde03cc5efd67c11dc75cd5ba5e8ccf55c5594 Mon Sep 17 00:00:00 2001 From: Hao Wu Date: Tue, 30 Aug 2016 09:57:59 +0800 Subject: MdeModulePkg: Use IsZeroGuid API for zero GUID checking Instead of comparing a GUID with gZeroGuid via the CompareGuid API, the commit uses the IsZeroGuid API to check if the given GUID is a zero GUID. Cc: Feng Tian Cc: Star Zeng Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hao Wu Reviewed-by: Feng Tian --- MdeModulePkg/Library/UefiBootManagerLib/BmDriverHealth.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'MdeModulePkg/Library/UefiBootManagerLib/BmDriverHealth.c') diff --git a/MdeModulePkg/Library/UefiBootManagerLib/BmDriverHealth.c b/MdeModulePkg/Library/UefiBootManagerLib/BmDriverHealth.c index 1e68cbc01f..ddcee8b067 100644 --- a/MdeModulePkg/Library/UefiBootManagerLib/BmDriverHealth.c +++ b/MdeModulePkg/Library/UefiBootManagerLib/BmDriverHealth.c @@ -1,7 +1,7 @@ /** @file Library functions which relates with driver health. -Copyright (c) 2011 - 2015, Intel Corporation. All rights reserved.
+Copyright (c) 2011 - 2016, Intel Corporation. All rights reserved.
(C) Copyright 2015 Hewlett-Packard Development Company, L.P.
(C) Copyright 2016 Hewlett Packard Enterprise Development LP
This program and the accompanying materials @@ -446,7 +446,7 @@ BmRepairAllControllers ( // // Configure PcdDriverHealthConfigureForm to ZeroGuid to disable driver health check. // - if (CompareGuid (PcdGetPtr (PcdDriverHealthConfigureForm), &gZeroGuid)) { + if (IsZeroGuid (PcdGetPtr (PcdDriverHealthConfigureForm))) { return; } -- cgit v1.2.3