Remove unused variable, nits.

This commit is contained in:
Peter H. Froehlich 2015-09-26 23:10:25 -04:00 committed by Frans Kaashoek
parent 2c60b7f31f
commit 1ccb5a6fca

View file

@ -54,7 +54,7 @@ sys_dup(void)
{ {
struct file *f; struct file *f;
int fd; int fd;
if(argfd(0, 0, &f) < 0) if(argfd(0, 0, &f) < 0)
return -1; return -1;
if((fd=fdalloc(f)) < 0) if((fd=fdalloc(f)) < 0)
@ -92,7 +92,7 @@ sys_close(void)
{ {
int fd; int fd;
struct file *f; struct file *f;
if(argfd(0, &fd, &f) < 0) if(argfd(0, &fd, &f) < 0)
return -1; return -1;
proc->ofile[fd] = 0; proc->ofile[fd] = 0;
@ -105,7 +105,7 @@ sys_fstat(void)
{ {
struct file *f; struct file *f;
struct stat *st; struct stat *st;
if(argfd(0, 0, &f) < 0 || argptr(1, (void*)&st, sizeof(*st)) < 0) if(argfd(0, 0, &f) < 0 || argptr(1, (void*)&st, sizeof(*st)) < 0)
return -1; return -1;
return filestat(f, st); return filestat(f, st);
@ -351,11 +351,10 @@ sys_mknod(void)
{ {
struct inode *ip; struct inode *ip;
char *path; char *path;
int len;
int major, minor; int major, minor;
begin_op(); begin_op();
if((len=argstr(0, &path)) < 0 || if((argstr(0, &path)) < 0 ||
argint(1, &major) < 0 || argint(1, &major) < 0 ||
argint(2, &minor) < 0 || argint(2, &minor) < 0 ||
(ip = create(path, T_DEV, major, minor)) == 0){ (ip = create(path, T_DEV, major, minor)) == 0){