Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 27059
b: refs/heads/master
c: 235a9d3
h: refs/heads/master
i:
  27057: 72b6325
  27055: b66b89c
v: v3
  • Loading branch information
Ralf Baechle committed May 31, 2006
1 parent 3e5aa72 commit 06e09d8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 25 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c620953c32d301c2a7bc73f9f780301e110b7d7c
refs/heads/master: 235a9d3eee9a9588c17d39efff8373d0513549b5
24 changes: 0 additions & 24 deletions trunk/arch/mips/kernel/syscall.c
Original file line number Diff line number Diff line change
Expand Up @@ -280,27 +280,6 @@ asmlinkage int _sys_sysmips(int cmd, long arg1, int arg2, int arg3)
char __user *name;

switch(cmd) {
case SETNAME: {
char nodename[__NEW_UTS_LEN + 1];

if (!capable(CAP_SYS_ADMIN))
return -EPERM;

name = (char __user *) arg1;

len = strncpy_from_user(nodename, name, __NEW_UTS_LEN);
if (len < 0)
return -EFAULT;

down_write(&uts_sem);
strncpy(system_utsname.nodename, nodename, len);
nodename[__NEW_UTS_LEN] = '\0';
strlcpy(system_utsname.nodename, nodename,
sizeof(system_utsname.nodename));
up_write(&uts_sem);
return 0;
}

case MIPS_ATOMIC_SET:
printk(KERN_CRIT "How did I get here?\n");
return -EINVAL;
Expand All @@ -313,9 +292,6 @@ asmlinkage int _sys_sysmips(int cmd, long arg1, int arg2, int arg3)
case FLUSH_CACHE:
__flush_cache_all();
return 0;

case MIPS_RDNVRAM:
return -EIO;
}

return -EINVAL;
Expand Down

0 comments on commit 06e09d8

Please sign in to comment.