diff options
author | Doug Flick <dougflick@microsoft.com> | 2024-02-13 10:46:01 -0800 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2024-02-14 03:28:11 +0000 |
commit | af3fad99d6088881562e50149f414f76a5be0140 (patch) | |
tree | 4b4e62256c8c0a5366066686d4a3e6482d2cfa2d /NetworkPkg/DpcDxe/DpcDxe.inf | |
parent | 1c440a5eceedc64e892877eeac0f1a4938f5abbb (diff) | |
download | edk2-af3fad99d6088881562e50149f414f76a5be0140.tar.gz |
NetworkPkg: Dhcp6Dxe: Removes duplicate check and replaces with macro
Removes duplicate check after merge
>
> //
> // Verify the PacketCursor is within the packet
> //
> if ( (*PacketCursor < Packet->Dhcp6.Option)
> || (*PacketCursor >= Packet->Dhcp6.Option + (Packet->Size -
sizeof (EFI_DHCP6_HEADER))))
> {
> return EFI_INVALID_PARAMETER;
> }
>
Converts the check to a macro and replaces all instances of the check
with the macro
Cc: Saloni Kasbekar <saloni.kasbekar@intel.com>
Cc: Zachary Clark-williams <zachary.clark-williams@intel.com>
Signed-off-by: Doug Flick [MSFT] <doug.edk2@gmail.com>
Reviewed-by: Saloni Kasbekar <saloni.kasbekar@intel.com>
Reviewed-by: Leif Lindholm <quic_llindhol@quicinc.com>
Diffstat (limited to 'NetworkPkg/DpcDxe/DpcDxe.inf')
0 files changed, 0 insertions, 0 deletions