]> git.proxmox.com Git - mirror_edk2.git/commitdiff
The pointer argument should be set to NULL if not used not FALSE.
authorHarry Liebel <Harry.Liebel@arm.com>
Mon, 4 Aug 2014 01:26:57 +0000 (01:26 +0000)
committersfu5 <sfu5@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 4 Aug 2014 01:26:57 +0000 (01:26 +0000)
  FALSE evaluates to 0. This was flagged by LLVM compiler as a
  warning:
  "expression which evaluates to zero treated as a null pointer
   constant of type 'EFI_MTFTP4_OVERRIDE_DATA *'
   [-Wnon-literal-null-conversion]"

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Harry Liebel <Harry.Liebel@arm.com>
Reviewed-By: Olivier Martin <olivier.martin@arm.com>
Reviewed-By: Fu, Siyuan <siyuan.fu@intel.com>
Reviewed-By: Ye, Ting (ting.ye@intel.com)
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15741 6f19259b-4bc3-4df7-8a09-765794883524

MdeModulePkg/Universal/Network/UefiPxeBcDxe/PxeBcMtftp.c

index 9f13b06898af431a1f62901b30a2bd519eea139a..54de16ca5f87e5a4a93b05bf504eb84c983daac9 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   PxeBc MTFTP functions.\r
   \r
-Copyright (c) 2007 - 2009, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2007 - 2014, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -146,7 +146,7 @@ PxeBcTftpGetFileSize (
 \r
   Status = Mtftp4->GetInfo (\r
                     Mtftp4,\r
-                    FALSE,\r
+                    NULL,\r
                     Filename,\r
                     NULL,\r
                     (UINT8) OptCnt,\r