From: Eric Biggers Date: Mon, 9 Dec 2019 20:45:09 +0000 (-0800) Subject: fscrypt: remove redundant bi_status check X-Git-Tag: v5.6-rc1~155^2~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f4a0b08b39ae9c81c827c06550579f4580bd82ac;p=thirdparty%2Flinux.git 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 --- diff --git a/fs/crypto/bio.c b/fs/crypto/bio.c index 1f4b8a2770606..b88d417e186e5 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;