NFSD: Fix a handful of coding style issues in write_filehandle()
authorChuck Lever <chuck.lever@oracle.com>
Fri, 12 Dec 2008 21:57:20 +0000 (16:57 -0500)
committerJ. Bruce Fields <bfields@citi.umich.edu>
Tue, 6 Jan 2009 16:53:56 +0000 (11:53 -0500)
Clean up: follow kernel coding style.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
fs/nfsd/nfsctl.c

index 173c4dd3d7a8f3107f68a5f1474e7283f14dd077..498d763b9320a56a519af517208d79d3dcd07275 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;