CIFS: Improve indentation in cifs_user_read()
Signed-off-by: Pavel Shilovsky <pshilovsky@samba.org> Signed-off-by: Steve French <smfrench@gmail.com>
This commit is contained in:
parent
2e8a05d802
commit
fb8a3e5255
|
@ -3027,10 +3027,8 @@ again:
|
||||||
rc = wait_for_completion_killable(&rdata->done);
|
rc = wait_for_completion_killable(&rdata->done);
|
||||||
if (rc)
|
if (rc)
|
||||||
rc = -EINTR;
|
rc = -EINTR;
|
||||||
else if (rdata->result) {
|
else if (rdata->result == -EAGAIN) {
|
||||||
rc = rdata->result;
|
|
||||||
/* resend call if it's a retryable error */
|
/* resend call if it's a retryable error */
|
||||||
if (rc == -EAGAIN) {
|
|
||||||
struct list_head tmp_list;
|
struct list_head tmp_list;
|
||||||
|
|
||||||
list_del_init(&rdata->list);
|
list_del_init(&rdata->list);
|
||||||
|
@ -3045,10 +3043,11 @@ again:
|
||||||
kref_put(&rdata->refcount,
|
kref_put(&rdata->refcount,
|
||||||
cifs_uncached_readdata_release);
|
cifs_uncached_readdata_release);
|
||||||
goto again;
|
goto again;
|
||||||
}
|
} else if (rdata->result)
|
||||||
} else {
|
rc = rdata->result;
|
||||||
|
else
|
||||||
rc = cifs_readdata_to_iov(rdata, to);
|
rc = cifs_readdata_to_iov(rdata, to);
|
||||||
}
|
|
||||||
/* if there was a short read -- discard anything left */
|
/* if there was a short read -- discard anything left */
|
||||||
if (rdata->got_bytes && rdata->got_bytes < rdata->bytes)
|
if (rdata->got_bytes && rdata->got_bytes < rdata->bytes)
|
||||||
rc = -ENODATA;
|
rc = -ENODATA;
|
||||||
|
|
Loading…
Reference in New Issue