Messages in this thread Patch in this message | | | From | Rickard Strandqvist <> | Subject | [PATCH] arch: x86: kernel: traps: Remove unused function | Date | Fri, 2 Jan 2015 21:31:36 +0100 |
| |
Remove the function conditional_cli() that is not used anywhere.
This was partially found by using a static code analysis program called cppcheck.
Signed-off-by: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se> --- arch/x86/kernel/traps.c | 6 ------ 1 file changed, 6 deletions(-)
diff --git a/arch/x86/kernel/traps.c b/arch/x86/kernel/traps.c index 0d0e922..60614b1 100644 --- a/arch/x86/kernel/traps.c +++ b/arch/x86/kernel/traps.c @@ -94,12 +94,6 @@ static inline void preempt_conditional_sti(struct pt_regs *regs) local_irq_enable(); } -static inline void conditional_cli(struct pt_regs *regs) -{ - if (regs->flags & X86_EFLAGS_IF) - local_irq_disable(); -} - static inline void preempt_conditional_cli(struct pt_regs *regs) { if (regs->flags & X86_EFLAGS_IF) -- 1.7.10.4
| |