MIPS: Remove unused code from arch/mips/kernel/syscall.c [Linux 2.6.38]

This Linux kernel change "MIPS: Remove unused code from arch/mips/kernel/syscall.c" is included in the Linux 2.6.38 release. This change is authored by David Daney <ddaney [at] caviumnetworks.com> on Mon Jan 24 14:51:35 2011 -0800. The commit for this change in Linux stable tree is 7a6e4ca (patch).

MIPS: Remove unused code from arch/mips/kernel/syscall.c

The variable arg3 in _sys_sysmips() is unused.  Remove it.

Signed-off-by: David Daney <ddaney@caviumnetworks.com>
To: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/2034/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>

There are 3 lines of Linux source code added/deleted in this change. Code changes to Linux kernel are as follows.

 arch/mips/kernel/syscall.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/arch/mips/kernel/syscall.c b/arch/mips/kernel/syscall.c
index cde2a32c..58beabf 100644
--- a/arch/mips/kernel/syscall.c
+++ b/arch/mips/kernel/syscall.c
@@ -383,12 +383,11 @@ static inline int mips_atomic_set(struct pt_regs *regs,
 static int __used noinline
 _sys_sysmips(nabi_no_regargs struct pt_regs regs)
 {
-   long cmd, arg1, arg2, arg3;
+   long cmd, arg1, arg2;

    cmd = regs.regs[4];
    arg1 = regs.regs[5];
    arg2 = regs.regs[6];
-   arg3 = regs.regs[7];

    switch (cmd) {
    case MIPS_ATOMIC_SET:

Leave a Reply

Your email address will not be published. Required fields are marked *