summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorEric Biggers <ebiggers@google.com>2019-12-09 21:45:09 +0100
committerEric Biggers <ebiggers@google.com>2019-12-31 17:33:51 +0100
commitf4a0b08b39ae9c81c827c06550579f4580bd82ac (patch)
treeae104ff57b76ca49cf3565e733be6d28dd89f5b9 /fs
parentfscrypt: Allow modular crypto algorithms (diff)
downloadlinux-f4a0b08b39ae9c81c827c06550579f4580bd82ac.tar.xz
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>
Diffstat (limited to 'fs')
-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;