From 19ab4539753a0cc940ad317dbba8957c752e2ce8 Mon Sep 17 00:00:00 2001 From: Darshan Sen Date: Tue, 28 Feb 2023 19:37:16 +0530 Subject: [PATCH] chore: remove unnecessary if block Signed-off-by: Darshan Sen --- postject-api.h | 9 --------- 1 file changed, 9 deletions(-) diff --git a/postject-api.h b/postject-api.h index bbf08a1..e0e6ca2 100644 --- a/postject-api.h +++ b/postject-api.h @@ -54,15 +54,6 @@ struct postject__dl_iterate_phdr_data { static int postject__dl_iterate_phdr_callback(struct dl_phdr_info* info, size_t size, void* opaque) { - /* - The first object visited by the callback is the main program. - For the main program, the dlpi_name field will be an empty string. - */ - if (info->dlpi_name == NULL || strcmp(info->dlpi_name, "") != 0) { - // skip to the next shared object - return 0; - } - struct postject__dl_iterate_phdr_data* data = (struct postject__dl_iterate_phdr_data*)opaque;