diff options
author | Laszlo Ersek <lersek@redhat.com> | 2019-09-07 00:37:31 +0200 |
---|---|---|
committer | Laszlo Ersek <lersek@redhat.com> | 2019-10-09 09:40:10 +0200 |
commit | c486a33049bbe59eed99255fa772fba63cdbb73a (patch) | |
tree | e01ae2173fc4633015cbf899bf3f0b86a4437bb0 /NetworkPkg | |
parent | b1a6a0676a741a886c1a1287d0427a17620d3919 (diff) | |
download | edk2-c486a33049bbe59eed99255fa772fba63cdbb73a.tar.gz edk2-c486a33049bbe59eed99255fa772fba63cdbb73a.tar.bz2 edk2-c486a33049bbe59eed99255fa772fba63cdbb73a.zip |
NetworkPkg/DxeNetLib: fix type typo in NetLibGetMacAddress()
NetLibGetSnpHandle() returns an EFI_HANDLE, not an (EFI_HANDLE*).
NetLibGetMacAddress() only uses the return value ("SnpHandle") for a
NULL-check. Fix the type of "SnpHandle".
This patch is a no-op.
Cc: Jiaxin Wu <jiaxin.wu@intel.com>
Cc: Siyuan Fu <siyuan.fu@intel.com>
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Philippe Mathieu-Daude <philmd@redhat.com>
Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com>
Reviewed-by: Siyuan Fu <siyuan.fu@intel.com>
Diffstat (limited to 'NetworkPkg')
-rw-r--r-- | NetworkPkg/Library/DxeNetLib/DxeNetLib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/NetworkPkg/Library/DxeNetLib/DxeNetLib.c b/NetworkPkg/Library/DxeNetLib/DxeNetLib.c index 8e2f720666..a39c20be3d 100644 --- a/NetworkPkg/Library/DxeNetLib/DxeNetLib.c +++ b/NetworkPkg/Library/DxeNetLib/DxeNetLib.c @@ -2182,7 +2182,7 @@ NetLibGetMacAddress ( EFI_SIMPLE_NETWORK_MODE SnpModeData;
EFI_MANAGED_NETWORK_PROTOCOL *Mnp;
EFI_SERVICE_BINDING_PROTOCOL *MnpSb;
- EFI_HANDLE *SnpHandle;
+ EFI_HANDLE SnpHandle;
EFI_HANDLE MnpChildHandle;
ASSERT (MacAddress != NULL);
|