* [PATCH 1/1] [IA64] Deletion of unnecessary checks before the function call "unw_remove_unwind_table" [not found] ` <5317A59D.4@users.sourceforge.net> @ 2014-11-21 23:01 ` SF Markus Elfring 2014-11-22 21:09 ` [PATCH 1/1] [IA64] Deletion of unnecessary checks before the function call "unw_remove_unwind_ta Dan Carpenter 0 siblings, 1 reply; 2+ messages in thread From: SF Markus Elfring @ 2014-11-21 23:01 UTC (permalink / raw) To: Fenghua Yu, Tony Luck, linux-ia64; +Cc: LKML, kernel-janitors, Julia Lawall From: Markus Elfring <elfring@users.sourceforge.net> Date: Fri, 21 Nov 2014 23:57:28 +0100 The unw_remove_unwind_table() function performs also input parameter validation. Thus the test around the call is not needed. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring <elfring@users.sourceforge.net> --- arch/ia64/kernel/module.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/arch/ia64/kernel/module.c b/arch/ia64/kernel/module.c index 24603be..30ff27d 100644 --- a/arch/ia64/kernel/module.c +++ b/arch/ia64/kernel/module.c @@ -946,8 +946,6 @@ module_finalize (const Elf_Ehdr *hdr, const Elf_Shdr *sechdrs, struct module *mo void module_arch_cleanup (struct module *mod) { - if (mod->arch.init_unw_table) - unw_remove_unwind_table(mod->arch.init_unw_table); - if (mod->arch.core_unw_table) - unw_remove_unwind_table(mod->arch.core_unw_table); + unw_remove_unwind_table(mod->arch.init_unw_table); + unw_remove_unwind_table(mod->arch.core_unw_table); } -- 2.1.3 ^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH 1/1] [IA64] Deletion of unnecessary checks before the function call "unw_remove_unwind_ta 2014-11-21 23:01 ` [PATCH 1/1] [IA64] Deletion of unnecessary checks before the function call "unw_remove_unwind_table" SF Markus Elfring @ 2014-11-22 21:09 ` Dan Carpenter 0 siblings, 0 replies; 2+ messages in thread From: Dan Carpenter @ 2014-11-22 21:09 UTC (permalink / raw) To: SF Markus Elfring Cc: Fenghua Yu, Tony Luck, linux-ia64, LKML, kernel-janitors, Julia Lawall This one is buggy. regards, dan carpenter ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-11-22 21:09 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <5307CAA2.8060406@users.sourceforge.net>
[not found] ` <alpine.DEB.2.02.1402212321410.2043@localhost6.localdomain6>
[not found] ` <530A086E.8010901@users.sourceforge.net>
[not found] ` <alpine.DEB.2.02.1402231635510.1985@localhost6.localdomain6>
[not found] ` <530A72AA.3000601@users.sourceforge.net>
[not found] ` <alpine.DEB.2.02.1402240658210.2090@localhost6.localdomain6>
[not found] ` <530B5FB6.6010207@users.sourceforge.net>
[not found] ` <alpine.DEB.2.10.1402241710370.2074@hadrien>
[not found] ` <530C5E18.1020800@users.sourceforge.net>
[not found] ` <alpine.DEB.2.10.1402251014170.2080@hadrien>
[not found] ` <530CD2C4.4050903@users.sourceforge.net>
[not found] ` <alpine.DEB.2.10.1402251840450.7035@hadrien>
[not found] ` <530CF8FF.8080600@users.sourceforge.net>
[not found] ` <alpine.DEB.2.02.1402252117150.2047@localhost6.localdomain6>
[not found] ` <530DD06F.4090703@users.sourceforge.net>
[not found] ` <alpine.DEB.2.02.1402262129250.2221@localhost6.localdomain6>
[not found] ` <5317A59D.4@users.sourceforge.net>
2014-11-21 23:01 ` [PATCH 1/1] [IA64] Deletion of unnecessary checks before the function call "unw_remove_unwind_table" SF Markus Elfring
2014-11-22 21:09 ` [PATCH 1/1] [IA64] Deletion of unnecessary checks before the function call "unw_remove_unwind_ta Dan Carpenter
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox