summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter H. Froehlich <[email protected]>2015-09-26 23:10:25 -0400
committerFrans Kaashoek <[email protected]>2016-08-18 11:15:56 -0400
commit1ccb5a6fca282df5e76897631aee6fef08ffc051 (patch)
tree202f2fdb8eb838929a465fc5b5c15ee818ead2f2
parent2c60b7f31f6c5e7687d506695bbab8dbc1972d6a (diff)
downloadxv6-labs-1ccb5a6fca282df5e76897631aee6fef08ffc051.tar.gz
xv6-labs-1ccb5a6fca282df5e76897631aee6fef08ffc051.tar.bz2
xv6-labs-1ccb5a6fca282df5e76897631aee6fef08ffc051.zip
Remove unused variable, nits.
-rw-r--r--sysfile.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/sysfile.c b/sysfile.c
index 2209f6e..aaeccc5 100644
--- a/sysfile.c
+++ b/sysfile.c
@@ -54,7 +54,7 @@ sys_dup(void)
{
struct file *f;
int fd;
-
+
if(argfd(0, 0, &f) < 0)
return -1;
if((fd=fdalloc(f)) < 0)
@@ -92,7 +92,7 @@ sys_close(void)
{
int fd;
struct file *f;
-
+
if(argfd(0, &fd, &f) < 0)
return -1;
proc->ofile[fd] = 0;
@@ -105,7 +105,7 @@ sys_fstat(void)
{
struct file *f;
struct stat *st;
-
+
if(argfd(0, 0, &f) < 0 || argptr(1, (void*)&st, sizeof(*st)) < 0)
return -1;
return filestat(f, st);
@@ -351,11 +351,10 @@ sys_mknod(void)
{
struct inode *ip;
char *path;
- int len;
int major, minor;
-
+
begin_op();
- if((len=argstr(0, &path)) < 0 ||
+ if((argstr(0, &path)) < 0 ||
argint(1, &major) < 0 ||
argint(2, &minor) < 0 ||
(ip = create(path, T_DEV, major, minor)) == 0){