Skip to content
Commit 844fa389 authored by Michael D Kinney's avatar Michael D Kinney
Browse files

IntelSiliconPkg/IntelVTdDmarPei: Fix CLANG detected incorrect return



CreateSecondLevelPagingEntryTable() has a return type of
VTD_SECOND_LEVEL_PAGING_ENTRY * and an error condition
returns a value of NULL.

Change return value of EFI_SUCCESS (value 0) to NULL to
address CLANG compiler detection of incorrect return type.

Cc: Ray Ni <ray.ni@intel.com>
Cc: Rangasai V Chaganty <rangasai.v.chaganty@intel.com>
Cc: Isaac Oram <isaac.w.oram@intel.com>
Cc: Ashraf Ali S <ashraf.ali.s@intel.com>
Signed-off-by: default avatarMichael D Kinney <michael.d.kinney@intel.com>
Reviewed-by: default avatarRay Ni <ray.ni@intel.com>
parent e2d7a301
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment