| To: | Ralf Baechle <ralf@linux-mips.org> |
|---|---|
| Subject: | [PATCH] mips, exec: remove redundant addr_limit assignment |
| From: | Mathias Krause <minipli@googlemail.com> |
| Date: | Fri, 10 Jun 2011 15:10:04 +0200 |
| Cc: | Andrew Morton <akpm@linux-foundation.org>, Linus Torvalds <torvalds@linux-foundation.org>, linux-mips@linux-mips.org, linux-kernel@vger.kernel.org, Mathias Krause <minipli@googlemail.com> |
| In-reply-to: | <BANLkTinv1teZEHMK0qymaVdcxPOErpqSyg@mail.gmail.com> |
| References: | <BANLkTinv1teZEHMK0qymaVdcxPOErpqSyg@mail.gmail.com> |
| References: | <BANLkTiknCeAxe30MJdVTxDom+ko8+EDQ4A@mail.gmail.com> <1307642718-22257-1-git-send-email-minipli@googlemail.com> <20110609155630.0f734351.akpm@linux-foundation.org> |
| Sender: | linux-mips-bounce@linux-mips.org |
The address limit is already set in flush_old_exec() via set_fs(USER_DS)
so this assignment is redundant.
Signed-off-by: Mathias Krause <minipli@googlemail.com>
---
arch/mips/kernel/process.c | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
diff --git a/arch/mips/kernel/process.c b/arch/mips/kernel/process.c
index d2112d3..a8d53e5 100644
--- a/arch/mips/kernel/process.c
+++ b/arch/mips/kernel/process.c
@@ -103,7 +103,6 @@ void start_thread(struct pt_regs * regs, unsigned long pc,
unsigned long sp)
__init_dsp();
regs->cp0_epc = pc;
regs->regs[29] = sp;
- current_thread_info()->addr_limit = USER_DS;
}
void exit_thread(void)
--
1.5.6.5
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [PATCH 0/2] MIPS: oprofile: callgraph support, Robert Richter |
|---|---|
| Next by Date: | Re: [PATCH] tty: 8250: handle USR for DesignWare 8250 with correct accessors, Alan Cox |
| Previous by Thread: | Re: [PATCH 0/2] MIPS: oprofile: callgraph support, Robert Richter |
| Next by Thread: | [PATCH] PCI: Make the struct pci_dev * argument of pci_fixup_irqs const., Ralf Baechle |
| Indexes: | [Date] [Thread] [Top] [All Lists] |