Skip to content

Commit 93f24f3

Browse files
committed
remove redundant if-conditions
1 parent 47240b9 commit 93f24f3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

mgwhelp/dwarf_pe.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -240,17 +240,17 @@ dwarf_pe_init_link(const wchar_t *image,
240240
(PBYTE)pe_obj->pNtHeaders +
241241
sizeof(DWORD) +
242242
sizeof(IMAGE_FILE_HEADER) );
243-
if (imagebase) *imagebase = opt->ImageBase;
243+
*imagebase = opt->ImageBase;
244244
}
245245
else if (sooh==sizeof(IMAGE_OPTIONAL_HEADER64)) {
246246
PIMAGE_OPTIONAL_HEADER64 opt = (PIMAGE_OPTIONAL_HEADER64)(
247247
(PBYTE)pe_obj->pNtHeaders +
248248
sizeof(DWORD) +
249249
sizeof(IMAGE_FILE_HEADER) );
250-
if (imagebase) *imagebase = opt->ImageBase;
250+
*imagebase = opt->ImageBase;
251251
}
252252
else {
253-
if (imagebase) *imagebase = 0;
253+
*imagebase = 0;
254254
}
255255
}
256256

0 commit comments

Comments
 (0)