We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c305a4e commit 06dd759Copy full SHA for 06dd759
arch/x86/kernel/module.c
@@ -278,10 +278,8 @@ int module_finalize(const Elf_Ehdr *hdr,
278
if (calls) {
279
struct callthunk_sites cs = {};
280
281
- if (calls) {
282
- cs.call_start = (void *)calls->sh_addr;
283
- cs.call_end = (void *)calls->sh_addr + calls->sh_size;
284
- }
+ cs.call_start = (void *)calls->sh_addr;
+ cs.call_end = (void *)calls->sh_addr + calls->sh_size;
285
286
callthunks_patch_module_calls(&cs, me);
287
}
0 commit comments