diff options
author | Eric Biggers <ebiggers@google.com> | 2019-12-09 12:45:09 -0800 |
---|---|---|
committer | Eric Biggers <ebiggers@google.com> | 2019-12-31 10:33:51 -0600 |
commit | f4a0b08b39ae9c81c827c06550579f4580bd82ac (patch) | |
tree | ae104ff57b76ca49cf3565e733be6d28dd89f5b9 | |
parent | ede7a09fc8815011d67942e5b4a3cb1882b7bcd9 (diff) | |
download | linux-f4a0b08b39ae9c81c827c06550579f4580bd82ac.tar.gz linux-f4a0b08b39ae9c81c827c06550579f4580bd82ac.tar.bz2 linux-f4a0b08b39ae9c81c827c06550579f4580bd82ac.zip |
fscrypt: remove redundant bi_status check
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>
-rw-r--r-- | fs/crypto/bio.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/crypto/bio.c b/fs/crypto/bio.c index 1f4b8a277060..b88d417e186e 100644 --- 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; |