ANDROID: De-dup fdt_path_offset_namelen check am: 8246453859

Original change: https://android-review.googlesource.com/c/platform/external/dtc/+/2775197

Change-Id: I8647701d65219ed610357aacb93c06b2b07ace06
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Pierre-Clément Tosi 2023-10-09 16:10:22 +00:00 committed by Automerger Merge Worker
commit d230a22138

View file

@ -263,9 +263,6 @@ int fdt_path_offset_namelen(const void *fdt, const char *path, int namelen)
FDT_RO_PROBE(fdt); FDT_RO_PROBE(fdt);
if (namelen < 1)
return -FDT_ERR_BADPATH;
if (namelen < 1) if (namelen < 1)
return -FDT_ERR_BADPATH; return -FDT_ERR_BADPATH;