projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ede7a09
)
fscrypt: remove redundant bi_status check
author
Eric Biggers
<ebiggers@google.com>
Mon, 9 Dec 2019 20:45:09 +0000
(12:45 -0800)
committer
Eric Biggers
<ebiggers@google.com>
Tue, 31 Dec 2019 16:33:51 +0000
(10:33 -0600)
submit_bio_wait() already returns bi_status translated to an errno.
So the additional check of bi_status is redundant and can be removed.
Link:
https://lore.kernel.org/r/20191209204509.228942-1-ebiggers@kernel.org
Signed-off-by: Eric Biggers <ebiggers@google.com>
fs/crypto/bio.c
patch
|
blob
|
history
diff --git
a/fs/crypto/bio.c
b/fs/crypto/bio.c
index 1f4b8a2770606b5b97738ba2981c965b95e73b0f..b88d417e186e53b8ec3178350c298314c3eda231 100644
(file)
--- a/
fs/crypto/bio.c
+++ b/
fs/crypto/bio.c
@@
-77,8
+77,6
@@
int fscrypt_zeroout_range(const struct inode *inode, pgoff_t lblk,
goto errout;
}
err = submit_bio_wait(bio);
- if (err == 0 && bio->bi_status)
- err = -EIO;
bio_put(bio);
if (err)
goto errout;