mirror of
https://github.com/torvalds/linux.git
synced 2025-11-02 17:49:03 +02:00
NFSD: Clean up nfsctl_transaction_write()
For easier readability, follow the common convention:
if (error)
handle_error;
continue_normally;
No behavior change is expected.
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
This commit is contained in:
parent
442a629009
commit
3434d7aa77
1 changed files with 6 additions and 6 deletions
|
|
@ -109,12 +109,12 @@ static ssize_t nfsctl_transaction_write(struct file *file, const char __user *bu
|
|||
if (IS_ERR(data))
|
||||
return PTR_ERR(data);
|
||||
|
||||
rv = write_op[ino](file, data, size);
|
||||
if (rv >= 0) {
|
||||
simple_transaction_set(file, rv);
|
||||
rv = size;
|
||||
}
|
||||
return rv;
|
||||
rv = write_op[ino](file, data, size);
|
||||
if (rv < 0)
|
||||
return rv;
|
||||
|
||||
simple_transaction_set(file, rv);
|
||||
return size;
|
||||
}
|
||||
|
||||
static ssize_t nfsctl_transaction_read(struct file *file, char __user *buf, size_t size, loff_t *pos)
|
||||
|
|
|
|||
Loading…
Reference in a new issue