From 224b1cc286122b8aca5002fec31ed0390b299403 Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Mon, 26 Sep 2016 07:42:24 +0200 Subject: Fix various issues reported by Coverity --- DcsCfg/DcsCfgMain.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'DcsCfg/DcsCfgMain.c') diff --git a/DcsCfg/DcsCfgMain.c b/DcsCfg/DcsCfgMain.c index 5c2ce2b..59ff730 100644 --- a/DcsCfg/DcsCfgMain.c +++ b/DcsCfg/DcsCfgMain.c @@ -350,8 +350,8 @@ DcsCfgMain( res = EFI_BUFFER_TOO_SMALL; temp = MEM_ALLOC(size); if (temp == NULL || - EFI_ERROR(res = RndGetBytes(temp, size) || - EFI_ERROR(res = FileSave(NULL, (CHAR16*)optFile, temp, size))) + EFI_ERROR(res = RndGetBytes(temp, size)) || + EFI_ERROR(res = FileSave(NULL, (CHAR16*)optFile, temp, size)) ) { ERR_PRINT(L"Random: %r\n", res); } -- cgit v1.2.3