Skip to content

Commit

Permalink
efi: fix pointer-type mismatch assigment warning
Browse files Browse the repository at this point in the history
The assignment looks suspicious but is actually legit since it is
protected by the type check.

Signed-off-by: Sylvain Gault <sylvain.gault@gmail.com>
  • Loading branch information
Sylvain Gault committed Aug 26, 2015
1 parent e1fac99 commit f750b77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion efi/main.c
Expand Up @@ -63,7 +63,7 @@ bool efi_get_MAC( EFI_DEVICE_PATH * pDevPath, uint8_t * mac, uint16_t mac_size)
/* Find the handler to dump this device path node */
if (DevicePathType(DevPathNode) == MESSAGING_DEVICE_PATH &&
DevicePathSubType(DevPathNode) == MSG_MAC_ADDR_DP) {
MAC = DevPathNode;
MAC = (MAC_ADDR_DEVICE_PATH *)DevPathNode;
CopyMem(mac, MAC->MacAddress.Addr, PXE_MAC_LENGTH);
FreePool(pDevPath);
return TRUE;
Expand Down

0 comments on commit f750b77

Please sign in to comment.