NFSD: Replace open-coded integer with macro
[safe/jmp/linux-2.6] / fs / nfsd / nfsctl.c
index 173c4dd..856b864 100644 (file)
@@ -390,11 +390,13 @@ static ssize_t write_filehandle(struct file *file, char *buf, size_t size)
 
        dname = mesg;
        len = qword_get(&mesg, dname, size);
-       if (len <= 0) return -EINVAL;
+       if (len <= 0)
+               return -EINVAL;
        
        path = dname+len+1;
        len = qword_get(&mesg, path, size);
-       if (len <= 0) return -EINVAL;
+       if (len <= 0)
+               return -EINVAL;
 
        len = get_int(&mesg, &maxsize);
        if (len)
@@ -418,7 +420,8 @@ static ssize_t write_filehandle(struct file *file, char *buf, size_t size)
        if (len)
                return len;
        
-       mesg = buf; len = SIMPLE_TRANSACTION_LIMIT;
+       mesg = buf;
+       len = SIMPLE_TRANSACTION_LIMIT;
        qword_addhex(&mesg, &len, (char*)&fh.fh_base, fh.fh_size);
        mesg[-1] = '\n';
        return mesg - buf;      
@@ -436,9 +439,9 @@ static ssize_t write_threads(struct file *file, char *buf, size_t size)
                rv = get_int(&mesg, &newthreads);
                if (rv)
                        return rv;
-               if (newthreads <0)
+               if (newthreads < 0)
                        return -EINVAL;
-               rv = nfsd_svc(2049, newthreads);
+               rv = nfsd_svc(NFS_PORT, newthreads);
                if (rv)
                        return rv;
        }