aboutsummaryrefslogtreecommitdiff
path: root/fs/crypto
diff options
context:
space:
mode:
authorEric Biggers2019-12-09 12:45:09 -0800
committerEric Biggers2019-12-31 10:33:51 -0600
commitf4a0b08b39ae9c81c827c06550579f4580bd82ac (patch)
treeae104ff57b76ca49cf3565e733be6d28dd89f5b9 /fs/crypto
parentede7a09fc8815011d67942e5b4a3cb1882b7bcd9 (diff)
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>
Diffstat (limited to 'fs/crypto')
-rw-r--r--fs/crypto/bio.c2
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;