]> git.proxmox.com Git - mirror_edk2.git/blobdiff - OvmfPkg/VirtioNetDxe/DriverBinding.c
OvmfPkg: Fix VS2005 build warnings
[mirror_edk2.git] / OvmfPkg / VirtioNetDxe / DriverBinding.c
index 93995c6359eeee1ba0c486900e97be0d828eeb09..0ad39cf9729c0981922b4ab9069b7c64be1beb4e 100644 (file)
@@ -3,7 +3,7 @@
   Driver Binding code and its private helpers for the virtio-net driver.\r
 \r
   Copyright (C) 2013, Red Hat, Inc.\r
-  Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>\r
 \r
   This program and the accompanying materials are licensed and made available\r
   under the terms and conditions of the BSD License which accompanies this\r
@@ -129,7 +129,7 @@ VirtioNetGetFeatures (
     if (EFI_ERROR (Status)) {\r
       goto YieldDevice;\r
     }\r
-    *MediaPresent = !!(LinkStatus & VIRTIO_NET_S_LINK_UP);\r
+    *MediaPresent = (BOOLEAN) ((LinkStatus & VIRTIO_NET_S_LINK_UP) != 0);\r
   }\r
 \r
 YieldDevice:\r